Class frog.DeadState
- class DeadState
- extends frog.AFrogState

Singleton
- Singleton instance of this class

DeadState
()
- Private constructor this class, hidden by use of singleton pattern

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

Singleton
static final DeadState Singleton = new DeadState()
- Singleton instance of this class.

DeadState
private DeadState()
- Private constructor this class, hidden by use of singleton pattern.

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