vooga.games.jumper.rules
Class Decelerate

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

public class Decelerate
extends java.lang.Object
implements Rule

Decelerate the doodle


Constructor Summary
Decelerate()
           
 
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

Decelerate

public Decelerate()
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.