Class PolicyManager
java.lang.Object
org.bitsquad.warzone.gameengine.policy.PolicyManager
Manages all policies
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a policy to the listbooleancheckPolicies(Order p_order) Checks if the order satisfies all the policiesvoidEmpties out the policy list
-
Constructor Details
-
PolicyManager
public PolicyManager()Default constructor
-
-
Method Details
-
addPolicy
Adds a policy to the list- Parameters:
p_policy- Policy
-
clearPolicies
public void clearPolicies()Empties out the policy list -
checkPolicies
Checks if the order satisfies all the policies- Parameters:
p_order- Order- Returns:
- boolean
-