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