ballwar.model.strategy
Class AlignStrategy
java.lang.Object
ballwar.model.strategy.ANoOpStrategy
ballwar.model.strategy.AlignStrategy
- All Implemented Interfaces:
- IUpdateStrategy
public class AlignStrategy
- extends ANoOpStrategy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
host
private Ball host
factor
private double factor
distance
private double distance
_totalAcc
private Point2DDouble _totalAcc
alignCmd
private IBallCmd alignCmd
AlignStrategy
public AlignStrategy()
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.