|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectballworld.model.strategy.MultiStrategy
public class MultiStrategy
A composite strategy of two strategies.
Field Summary | |
---|---|
private IUpdateStrategy |
_s1
One of the composee strategies |
private IUpdateStrategy |
_s2
Another one of the composee strategies |
Constructor Summary | |
---|---|
MultiStrategy(IUpdateStrategy s1,
IUpdateStrategy s2)
Constructor for the class |
Method Summary | |
---|---|
void |
updateState(Ball context)
Update each composee strategy in turn. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private IUpdateStrategy _s1
private IUpdateStrategy _s2
Constructor Detail |
---|
public MultiStrategy(IUpdateStrategy s1, IUpdateStrategy s2)
s1
- One of the composee strategiess2
- Another one of the composee strategiesMethod Detail |
---|
public void updateState(Ball context)
updateState
in interface IUpdateStrategy
context
- The host ball for this strategy.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |