vooga.engine.level
Class RulesCollection

java.lang.Object
  extended by vooga.engine.level.RulesCollection

public class RulesCollection
extends java.lang.Object

Initializes the rules and passes them between levels so that the rules don't need to be reinitialized every time a new level is created.


Constructor Summary
RulesCollection()
           
 
Method Summary
 void addRule(java.lang.String n, Rule r)
          add a rule to the collection
 void deleteRule(Rule r)
          delete a rule from the collection
 void deleteRule(java.lang.String s)
          delete a rule from the collection
 java.util.HashMap<java.lang.String,Rule> getRules()
          return the map of the rules
 void updateRule(java.lang.String n, Rule r)
          update an existing rule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RulesCollection

public RulesCollection()
Method Detail

addRule

public void addRule(java.lang.String n,
                    Rule r)
add a rule to the collection

Parameters:
n -
r -

deleteRule

public void deleteRule(java.lang.String s)
delete a rule from the collection

Parameters:
s -

deleteRule

public void deleteRule(Rule r)
delete a rule from the collection

Parameters:
r -

updateRule

public void updateRule(java.lang.String n,
                       Rule r)
update an existing rule

Parameters:
n -
r -

getRules

public java.util.HashMap<java.lang.String,Rule> getRules()
return the map of the rules

Returns: