ballwar.model.strategy
Class RockStrategy
java.lang.Object
   ballwar.model.strategy.ANoOpStrategy
ballwar.model.strategy.ANoOpStrategy
       ballwar.model.strategy.RockStrategy
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.
 
 
 
| Method Summary | 
|  void | init(Ball context)Sets the context's velocity to zero.
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
RockStrategy
public RockStrategy()
init
public void init(Ball context)
- Sets the context's velocity to zero.
 
- 
- Specified by:
- initin interface- IUpdateStrategy
- Overrides:
- initin class- ANoOpStrategy
 
- 
- Parameters:
- context- This strategy's context.