vooga.games.jumper.rules
Class Floor

java.lang.Object
  extended by vooga.games.jumper.rules.Floor
All Implemented Interfaces:
Rule

public class Floor
extends java.lang.Object
implements Rule

Make sure the doodle doesn't fall out of the screen from below


Constructor Summary
Floor()
           
 
Method Summary
 void enforce(SpriteGroup... groups)
          set type SpriteGroup to be enforced by this rule.
 boolean isSatisfied(SpriteGroup... groups)
          Check to see if the rule is satisfied.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Floor

public Floor()
Method Detail

enforce

public void enforce(SpriteGroup... groups)
set type SpriteGroup to be enforced by this rule.

Specified by:
enforce in interface Rule
Parameters:
any - number of type SpriteGroup

isSatisfied

public boolean isSatisfied(SpriteGroup... groups)
Check to see if the rule is satisfied.

Specified by:
isSatisfied in interface Rule
Parameters:
any - number of type SpriteGroup
Returns:
true if sprite from sprite group hits floor