Class frog.AFrogState
- abstract class AFrogState
- extends Object
Represents an abstract state of a frog.

getColor
(Frog)
- Accessor method for the color of the frog
getHit
(Frog)
- Hits the frog
moveBy
(Frog, Point)
- Move request to move the frog

getColor
abstract Color getColor(Frog context)
- Accessor method for the color of the frog.
- Parameters:
- context - The context of this state.
- Returns:
- The color of the frog.
moveBy
abstract Point moveBy(Frog context, Point delta)
- Move request to move the frog.
- Parameters:
- context - The context of this state.
- Returns:
- The new position of the frog.
getHit
abstract IFrog getHit(Frog context)
- Hits the frog.
- Parameters:
- context - The context of this state.
- Returns:
- The frog.