Class PsychadelicStrategy


public class PsychadelicStrategy
extends AStrategy
An update strategy that causes the ball's color to randomly change every time it is updated. This will cause balls sharing the same flyweight with this strategy installed to appear to have different colors because their updates are called sequentially by the Dispatcher.


Variable Index

 o rand

Method Index

 o doAction (ABall)

Variables

 o rand
Randomizer rand

Methods

 o doAction
public void doAction(ABall b)
Parameters:
aBall -