vooga.games.towerdefense.rules
Class GameLost

java.lang.Object
  extended by vooga.games.towerdefense.rules.GameLost
All Implemented Interfaces:
Rule

public class GameLost
extends java.lang.Object
implements Rule


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

GameLost

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