ballwar.model
Class BallCmdSet

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

public class BallCmdSet
extends Object
implements IBallCmd


Field Summary
private  LRStruct _cmdSet
           
private  IAlgo _remCmdAlgo
           
private  IAlgo _runCmdsAlgo
           
 
Fields inherited from interface ballwar.model.IBallCmd
NoOp
 
Constructor Summary
BallCmdSet()
           
 
Method Summary
 void addCmd(IBallCmd cmd)
           
 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 clear()
           
 IBallCmd removeCmd(IBallCmd cmd)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_cmdSet

private LRStruct _cmdSet

_runCmdsAlgo

private IAlgo _runCmdsAlgo

_remCmdAlgo

private IAlgo _remCmdAlgo
Constructor Detail

BallCmdSet

public BallCmdSet()
Method Detail

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.