ballwar.model.strategy
Class StraightStrategy

java.lang.Object
  extended by ballwar.model.strategy.AUpdateStrategy
      extended by ballwar.model.strategy.StraightStrategy
All Implemented Interfaces:
IUpdateStrategy

public class StraightStrategy
extends AUpdateStrategy

An AUpdateStrategy-based strategy whose updateState is a no-op hence the randomly initialized ball will travel in a straight line (unless it collides or bounces).


Field Summary
 
Fields inherited from interface ballwar.model.IUpdateStrategy
NullObject
 
Constructor Summary
StraightStrategy()
           
 
Method Summary
 void updateState(Ball context)
          No-op.
 
Methods inherited from class ballwar.model.strategy.AUpdateStrategy
init, kill, updateCollision
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StraightStrategy

public StraightStrategy()
Method Detail

updateState

public void updateState(Ball context)
No-op.

Specified by:
updateState in interface IUpdateStrategy
Specified by:
updateState in class AUpdateStrategy
Parameters:
context - This strategy's context.