- All Implemented Interfaces:
Policy
public class NegotiatePolicy
extends Object
implements Policy
Implements the Negotiate Policy
-
Constructor Summary
Constructors
Parameterized constructor
-
Method Summary
boolean
Checks if the Order obeys the policy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
NegotiatePolicy
Parameterized constructor
- Parameters:
p_playerA
- Player
p_playerB
- Player
-
Method Details
-
check
public boolean check(Order p_order)
Checks if the Order obeys the policy
- Specified by:
check
in interface Policy
- Parameters:
p_order
- Order
- Returns:
- boolean