|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectballwar.model.strategy.ANoOpStrategy
public abstract class ANoOpStrategy
Abstract strategy that provides default behaviors that do nothing. Differs from the IUpdateStrategy.NullObject in that the purpose of this class is for subclassing, not to represent the null entity.
Field Summary |
---|
Fields inherited from interface ballwar.model.IUpdateStrategy |
---|
NullObject |
Constructor Summary | |
---|---|
ANoOpStrategy()
|
Method Summary | |
---|---|
void |
init(Ball context)
No-op |
void |
updateCollision(Ball context,
Ball target)
No-op |
void |
updateKill(Ball context)
No-op |
void |
updateState(Ball context)
No-op |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ANoOpStrategy()
Method Detail |
---|
public void updateState(Ball context)
updateState
in interface IUpdateStrategy
context
- The ball to update.public void updateCollision(Ball context, Ball target)
updateCollision
in interface IUpdateStrategy
context
- The ball that just moved and collided with the target ball.target
- The ball that was not moving and was collided by the context.public void init(Ball context)
init
in interface IUpdateStrategy
context
- The ball to initialize.public void updateKill(Ball context)
updateKill
in interface IUpdateStrategy
context
- The ball who's kill method was called.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |