|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.engine.state.GameState
vooga.games.mariogame.states.GameEndState
public class GameEndState
Field Summary |
---|
Fields inherited from class vooga.engine.state.GameState |
---|
myRenderField, myUpdateField |
Constructor Summary | |
---|---|
GameEndState(Game game,
PlayField playfield,
GamePlayState playState)
This constructor creates a GameEndState with a background, string of text, and a fontManager used to write the string |
Method Summary | |
---|---|
void |
activate()
Used to update the game state. |
void |
initialize()
The initialize method sets up specific variables and parameters necessary to the specific functioning of the GameState. |
void |
render(java.awt.Graphics2D g)
Renders all sprites stored in the GameState's renderGroups. |
Methods inherited from class vooga.engine.state.GameState |
---|
addGroup, addPlayField, addRenderPlayField, addRenderState, addState, addUpdatePlayField, addUpdateState, deactivate, equals, getGroup, getRenderField, getUpdateField, isActive, removeEverything, update |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GameEndState(Game game, PlayField playfield, GamePlayState playState)
background
- - can be colored or an imagemessageString
- - text displayedfontManager
- - resource used to write textMethod Detail |
---|
public void activate()
activate
in class GameState
public void render(java.awt.Graphics2D g)
GameState
render
in class GameState
public void initialize()
GameState
initialize
in class GameState
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |