|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.engine.state.GameState
vooga.engine.state.PauseGameState
public class PauseGameState
PauseGameState is a reusable extension of GameState that displays a basic pause message.
Field Summary |
---|
Fields inherited from class vooga.engine.state.GameState |
---|
myRenderField, myUpdateField |
Constructor Summary | |
---|---|
PauseGameState(GameState previousGameState)
Creates an instance of PauseGameState with a default message and color |
|
PauseGameState(GameState previousGameState,
java.lang.String pauseMessage)
Creates an instance of PauseGameState with a defaultcolor |
|
PauseGameState(GameState previousGameState,
java.lang.String pauseMessage,
java.awt.Color color)
Creates an instance of PauseGameState |
|
PauseGameState(GameState previousGameState,
java.lang.String pauseMessage,
java.awt.Color color,
int x,
int y)
Creates an instance of PauseGameState with a specific location for the pause message, color, and message |
|
PauseGameState(GameState previousGameState,
java.lang.String pauseMessage,
int x,
int y)
Creates an instance of PauseGameState with a specific location for the pause message |
Method Summary | |
---|---|
void |
initialize()
Initializes the PauseGameState |
void |
setMessagePosition(int x,
int y)
Changes the desired location of the pause message |
Methods inherited from class vooga.engine.state.GameState |
---|
activate, addGroup, addPlayField, addRenderPlayField, addRenderState, addState, addUpdatePlayField, addUpdateState, deactivate, equals, getGroup, getRenderField, getUpdateField, isActive, removeEverything, render, update |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PauseGameState(GameState previousGameState)
previousGameState
- public PauseGameState(GameState previousGameState, java.lang.String pauseMessage)
previousGameState
- pauseMessage
- message to be displayed on pausepublic PauseGameState(GameState previousGameState, java.lang.String pauseMessage, java.awt.Color color)
previousGameState
- pauseMessage
- message to be displayed on pausecolor
- represents the desired color of the pause messagepublic PauseGameState(GameState previousGameState, java.lang.String pauseMessage, int x, int y)
previousGameState
- pauseMessage
- message to be displayed on pausex
- x-coordinate of the pause messagey
- y-coordinate of the pause messagepublic PauseGameState(GameState previousGameState, java.lang.String pauseMessage, java.awt.Color color, int x, int y)
previousGameState
- pauseMessage
- message to be displayed on pausecolor
- represents the desired color of the pause messagex
- x-coordinate of the pause messagey
- y-coordinate of the pause messageMethod Detail |
---|
public void setMessagePosition(int x, int y)
x
- x-coordinate of the pause messagey
- y-coordinate of the pause messagepublic void initialize()
initialize
in class GameState
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |