|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectballworld.model.strategy.Change2Strategy
public class Change2Strategy
This strategy does nothing (i.e. goes straight) until after a certian number of updates, it will change the context's strategy to a Change1Strategy.
| Field Summary | |
|---|---|
private int |
count
The number of updates before the host's strategy is changed. |
| Constructor Summary | |
|---|---|
Change2Strategy()
|
|
| Method Summary | |
|---|---|
void |
updateState(Ball context)
Do nothing unless the count has gone to zero, then change the context's strategy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int count
| Constructor Detail |
|---|
public Change2Strategy()
| Method Detail |
|---|
public void updateState(Ball context)
updateState in interface IUpdateStrategycontext - The host ball for this strategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||