- All Implemented Interfaces:
Policy
public class BlockadePolicy
extends Object
implements Policy
Blockade Policy to implement the blockade functionality
-
Constructor Summary
Constructors
-
Method Summary
boolean
Checks if the policy is valid or not
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BlockadePolicy
Parametrized constructor
- Parameters:
p_player
- Player
p_blockadeCountry
- Country
-
Method Details
-
check
public boolean check(Order p_order)
Checks if the policy is valid or not
- Specified by:
check
in interface Policy
- Parameters:
p_order
- Order
- Returns:
- boolean