|
|||||||||
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.BasicTextGameState
public class BasicTextGameState
This is a simple reusable component GameState extension that displays a String message in the middle of the screen.
Field Summary |
---|
Fields inherited from class vooga.engine.state.GameState |
---|
myRenderField, myUpdateField |
Constructor Summary | |
---|---|
BasicTextGameState(java.lang.String pauseMessage)
Creates an instance of BasicTextGameState from a String message that will be displayed in black |
|
BasicTextGameState(java.lang.String pauseMessage,
java.awt.Color color)
Creates an instance of BasicTextGameState from a String message and a specified color |
|
BasicTextGameState(java.lang.String pauseMessage,
java.awt.Color color,
int x,
int y)
Creates an instance of BasicTextGameState with a specific message, color, and location |
|
BasicTextGameState(java.lang.String pauseMessage,
int x,
int y)
Creates an instance of BasicTextGameState from a String message and a location |
Method Summary | |
---|---|
void |
initialize()
Initializes this GameState |
void |
setMessagePosition(int x,
int y)
Changes the position that the message will be displayed in |
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 BasicTextGameState(java.lang.String pauseMessage)
pauseMessage
- represents the message to be displayed on the screen in this GameStatepublic BasicTextGameState(java.lang.String pauseMessage, java.awt.Color color)
pauseMessage
- represents the message to be displayed on the screen in this GameStatecolor
- represents the color that the message will be displayed inpublic BasicTextGameState(java.lang.String pauseMessage, int x, int y)
pauseMessage
- represents the message to be displayed on the screen in this GameStatex
- represents the desired x-coordinate of this messagey
- represents the desired y-coordinate of this messagepublic BasicTextGameState(java.lang.String pauseMessage, java.awt.Color color, int x, int y)
pauseMessage
- represents the message to be displayed on the screen in this GameStatecolor
- represents the color that the message will be displayed inx
- represents the desired x-coordinate of this messagey
- represents the desired y-coordinate of this messageMethod Detail |
---|
public void setMessagePosition(int x, int y)
x
- represents the desired x-coordinate of this messagey
- represents the desired y-coordinate of this messagepublic void initialize()
initialize
in class GameState
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |