vooga.games.asteroids
Class BorderRule

java.lang.Object
  extended by vooga.games.asteroids.BorderRule
All Implemented Interfaces:
Rule

public class BorderRule
extends java.lang.Object
implements Rule


Constructor Summary
BorderRule()
           
 
Method Summary
 void enforce(SpriteGroup... groups)
          add SpriteGroups that this Rule applies to
 boolean isSatisfied(SpriteGroup... groups)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BorderRule

public BorderRule()
Method Detail

enforce

public void enforce(SpriteGroup... groups)
Description copied from interface: Rule
add SpriteGroups that this Rule applies to

Specified by:
enforce in interface Rule

isSatisfied

public boolean isSatisfied(SpriteGroup... groups)
Specified by:
isSatisfied in interface Rule
Returns:
whether the rule is involved for the given SpriteGroups. This does not mean that the sprite groups are enforced by the rule, rather that the rule is activated.