Class frog.LiveState
- class LiveState
- extends frog.AFrogState

Singleton
- Singleton instance of this class

LiveState
()
- 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 by translating the given amount

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

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

getColor
Color getColor(Frog context)
- Accessor method for the color of the frog.
- Parameters:
- context - The context of this state.
- Returns:
- Color.GREEN always.
moveBy
Point moveBy(Frog context, Point delta)
- Move request to move the frog by translating the given amount.
- Parameters:
- context - The context of this state.
- Returns:
- The new position of the frog.
getHit
IFrog getHit(Frog context)
- Hits the frog. The frog will enter the dead state.
- Parameters:
- context - The context of this state.
- Returns:
- The frog.