ballwar.model.strategy
Class LeaderStrategy

java.lang.Object
  extended by ballwar.model.strategy.ANoOpStrategy
      extended by ballwar.model.strategy.LeaderStrategy
All Implemented Interfaces:
IUpdateStrategy

public class LeaderStrategy
extends ANoOpStrategy


Field Summary
private  Ball host
           
private  IBallCmd leadCmd
           
 
Fields inherited from interface ballwar.model.IUpdateStrategy
NullObject
 
Constructor Summary
LeaderStrategy()
           
 
Method Summary
 void init(Ball context)
          No-op
 void updateState(Ball context)
          No-op
 
Methods inherited from class ballwar.model.strategy.ANoOpStrategy
kill, updateCollision
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

host

private Ball host

leadCmd

private IBallCmd leadCmd
Constructor Detail

LeaderStrategy

public LeaderStrategy()
Method Detail

updateState

public void updateState(Ball context)
Description copied from class: ANoOpStrategy
No-op

Specified by:
updateState in interface IUpdateStrategy
Overrides:
updateState in class ANoOpStrategy
Parameters:
context - The ball to update.

init

public void init(Ball context)
Description copied from class: ANoOpStrategy
No-op

Specified by:
init in interface IUpdateStrategy
Overrides:
init in class ANoOpStrategy
Parameters:
context - The ball to initialize.