ballwar.model.strategy
Class AlignStrategy

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

public class AlignStrategy
extends ANoOpStrategy


Field Summary
private  Point2DDouble _totalAcc
           
private  IBallCmd alignCmd
           
private  double distance
           
private  double factor
           
private  Ball host
           
 
Fields inherited from interface ballwar.model.IUpdateStrategy
NullObject
 
Constructor Summary
AlignStrategy()
           
 
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

factor

private double factor

distance

private double distance

_totalAcc

private Point2DDouble _totalAcc

alignCmd

private IBallCmd alignCmd
Constructor Detail

AlignStrategy

public AlignStrategy()
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.