public class Change2Strategy extends java.lang.Object implements IUpdateStrategy
Modifier and Type | Field and Description |
---|---|
private int |
count
The number of updates before the host's strategy is changed.
|
Constructor and Description |
---|
Change2Strategy() |
Modifier and Type | Method and Description |
---|---|
void |
updateState(Ball context,
Dispatcher disp)
Do nothing unless the count has gone to zero, then change the context's
strategy
|
public void updateState(Ball context, Dispatcher disp)
updateState
in interface IUpdateStrategy
context
- The host ball for this strategydisp
- The dispatcher to use if necessary