ballwar.model.strategy
Class AversionStrategy

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

public class AversionStrategy
extends ANoOpStrategy


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

aversionCmd

private IBallCmd aversionCmd
Constructor Detail

AversionStrategy

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