ballwar.model
Class CollisionCmd
java.lang.Object
ballwar.model.CollisionCmd
- All Implemented Interfaces:
- IBallCmd
public class CollisionCmd
- extends Object
- implements IBallCmd
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 |
Singleton
public static final CollisionCmd Singleton
alreadyChecked
private HashSet alreadyChecked
CollisionCmd
private CollisionCmd()
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.