ballwar.model
Class FilterCmd
java.lang.Object
ballwar.model.FilterCmd
- All Implemented Interfaces:
- IBallCmd
public class FilterCmd
- extends Object
- implements IBallCmd
Method Summary |
void |
apply(Ball otherBall)
The method run by the ball's update method which is called when the ball is updated by the dispatcher. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_host
private Ball _host
_criteria
private FilterCmd.IFilterCriteria _criteria
_passCmd
private IBallCmd _passCmd
_rejectCmd
private IBallCmd _rejectCmd
FilterCmd
public FilterCmd(Ball host,
FilterCmd.IFilterCriteria criteria,
IBallCmd passCmd,
IBallCmd rejectCmd)
apply
public void apply(Ball otherBall)
- 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:
otherBall
- The ball that is calling this method. The context under which the command is to be run.