ballwar.model
Class BallCmdSet
java.lang.Object
ballwar.model.BallCmdSet
- All Implemented Interfaces:
- IBallCmd
public class BallCmdSet
- extends Object
- implements IBallCmd
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_cmdSet
private LRStruct _cmdSet
_runCmdsAlgo
private IAlgo _runCmdsAlgo
_remCmdAlgo
private IAlgo _remCmdAlgo
BallCmdSet
public BallCmdSet()
addCmd
public void addCmd(IBallCmd cmd)
removeCmd
public IBallCmd removeCmd(IBallCmd cmd)
clear
public void clear()
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.