ballwar.model
Class FilterCmd

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

public class FilterCmd
extends Object
implements IBallCmd


Nested Class Summary
static interface FilterCmd.IFilterCriteria
           
 
Field Summary
private  FilterCmd.IFilterCriteria _criteria
           
private  Ball _host
           
private  IBallCmd _passCmd
           
private  IBallCmd _rejectCmd
           
 
Fields inherited from interface ballwar.model.IBallCmd
NoOp
 
Constructor Summary
FilterCmd(Ball host, FilterCmd.IFilterCriteria criteria, IBallCmd passCmd, IBallCmd rejectCmd)
           
 
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
 

Field Detail

_host

private Ball _host

_criteria

private FilterCmd.IFilterCriteria _criteria

_passCmd

private IBallCmd _passCmd

_rejectCmd

private IBallCmd _rejectCmd
Constructor Detail

FilterCmd

public FilterCmd(Ball host,
                 FilterCmd.IFilterCriteria criteria,
                 IBallCmd passCmd,
                 IBallCmd rejectCmd)
Method Detail

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.