Class | Description |
---|---|
BreathingStrategy |
Strategy to change the context ball's radius in a random sinusoidal manner
|
Change1Strategy |
A composite strategy that switches the context's strategy to a Change2Strategy
after a certain number of updates.
|
Change2Strategy |
This strategy does nothing (i.e.
|
ColorStrategy |
Strategy to randomly change the context ball's color.
|
CurveStrategy |
Strategy to make the ball curve in a circle
|
DrunkenStrategy |
A strategy that, at every update, randomly selects from a set of 4 strategies
to be run.
|
MultiStrategy |
A composite strategy of two strategies.
|
StraightStrategy |
Simple no-op strategy, which, alone, will make the ball go in a straight
line.
|
SwitcherStrategy |
Decorator design pattern strategy that provides an indirection layer and
encapsulation over another strategy, enabling it to be switched without
disturbing the context ball.
|
WanderStrategy |
Strategy that randomly changes the velocity of the context ball by adding random values to it.
|