ballwar.model.strategy
Class SeparationStrategy

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

public class SeparationStrategy
extends ANoOpStrategy


Field Summary
private  double fallOff
           
private  Ball host
           
private  IBallCmd separationCmd
           
private  double separationDistance
           
private  double springConstant
           
 
Fields inherited from interface ballwar.model.IUpdateStrategy
NullObject
 
Constructor Summary
SeparationStrategy()
           
 
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

springConstant

private double springConstant

separationDistance

private double separationDistance

fallOff

private double fallOff

separationCmd

private IBallCmd separationCmd
Constructor Detail

SeparationStrategy

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