ballwar.model.strategy
Class RockStrategy

java.lang.Object
  extended by ballwar.model.strategy.ANoOpStrategy
      extended by ballwar.model.strategy.RockStrategy
All Implemented Interfaces:
IUpdateStrategy

public class RockStrategy
extends ANoOpStrategy

An ANoOpStrategy-based strategy that initializes its context's velocity to zero.


Field Summary
 
Fields inherited from interface ballwar.model.IUpdateStrategy
NullObject
 
Constructor Summary
RockStrategy()
           
 
Method Summary
 void init(Ball context)
          Sets the context's velocity to zero.
 
Methods inherited from class ballwar.model.strategy.ANoOpStrategy
kill, updateCollision, updateState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RockStrategy

public RockStrategy()
Method Detail

init

public void init(Ball context)
Sets the context's velocity to zero.

Specified by:
init in interface IUpdateStrategy
Overrides:
init in class ANoOpStrategy
Parameters:
context - This strategy's context.