Class PolicyManager
java.lang.Object
org.bitsquad.warzone.gameengine.policy.PolicyManager
Manages all policies
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a policy to the listboolean
checkPolicies
(Order p_order) Checks if the order satisfies all the policiesvoid
Empties 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
-