|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectballwar.model.strategy.ANoOpStrategy
ballwar.model.strategy.MultiSideWallStrategy
public class MultiSideWallStrategy
A wall consisting of multiple one-sided walls.
Field Summary | |
---|---|
private IAlgo |
initAlgo
Algo to initialize all the walls |
private IAlgo |
paintAlgo
Algo to paint all the walls. |
private IPaintStrategy |
paintStrategy
Paint strategy that is forced into the host ball that is the composite of all the paintstrategies from the one-sided walls. |
private IAlgo |
updateAlgo
Algo to update all the walls. |
private LRStruct |
wallSet
The set of one-sided walls |
Fields inherited from interface ballwar.model.IUpdateStrategy |
---|
NullObject |
Constructor Summary | |
---|---|
MultiSideWallStrategy()
Creates a random rectangular box of walls either with walls facing outward or inward. |
|
MultiSideWallStrategy(OneSideWallStrategy... walls)
|
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 |
---|
private LRStruct wallSet
private IAlgo updateAlgo
private IPaintStrategy paintStrategy
private IAlgo paintAlgo
private IAlgo initAlgo
Constructor Detail |
---|
public MultiSideWallStrategy(OneSideWallStrategy... walls)
public MultiSideWallStrategy()
Method Detail |
---|
public void updateState(Ball context)
ANoOpStrategy
updateState
in interface IUpdateStrategy
updateState
in class ANoOpStrategy
context
- The ball to update.public void init(Ball context)
ANoOpStrategy
init
in interface IUpdateStrategy
init
in class ANoOpStrategy
context
- The ball to initialize.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |