ballwar.model
Class CollisionCmd

java.lang.Object
  extended by ballwar.model.CollisionCmd
All Implemented Interfaces:
IBallCmd

public class CollisionCmd
extends Object
implements IBallCmd


Field Summary
private  HashSet alreadyChecked
           
static CollisionCmd Singleton
           
 
Fields inherited from interface ballwar.model.IBallCmd
NoOp
 
Constructor Summary
private CollisionCmd()
           
 
Method Summary
 void apply(Ball context)
          The method run by the ball's update method which is called when the ball is updated by the dispatcher.
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Singleton

public static final CollisionCmd Singleton

alreadyChecked

private HashSet alreadyChecked
Constructor Detail

CollisionCmd

private CollisionCmd()
Method Detail

reset

public void reset()

apply

public void apply(Ball context)
Description copied from interface: IBallCmd
The method run by the ball's update method which is called when the ball is updated by the dispatcher.

Specified by:
apply in interface IBallCmd
Parameters:
context - The ball that is calling this method. The context under which the command is to be run.