|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.asd.isoclient.InGameState
A state responsible for rendering and updating the in game world
| Constructor Summary | |
InGameState(LWJGLWindow window,
IsoClient client)
Create a new in game state |
|
| Method Summary | |
void |
actorChangedMap(Actor actor,
Map map)
Notification that an actor change map within the world |
void |
actorRemoved(Actor actor)
Notification that an actor has been removed |
void |
addChatMessage(java.lang.String source,
java.lang.String message)
Add a recieved chat message to the display |
void |
addDecal(Decal decal)
Add a decal to be rendered |
void |
applyTaint(int x,
int y)
Apply a rendering taint before rendering a particular tile |
void |
clearChat()
Clear the chat area |
void |
enterState(StateBasedGame game)
Notification that this state is being entered |
void |
init(StateBasedGame game)
Initialise any resources required by this game state. |
void |
laggedOut()
Notification that a command has been recieved in the past and hence this client has lagged out. |
void |
leaveState(StateBasedGame game)
Notification that this state is being left |
void |
newMapCreated(Actor cause,
Map map)
Notification that a new map has been created within the game world. |
void |
playerActorAdded(Actor actor,
java.lang.String username)
Notification that a player's actor has been added |
void |
reinit(StateBasedGame game)
Reinitialise the OpenGL resources |
void |
release()
Release opengl resources from this state |
void |
render(StateBasedGame game,
int delta)
Render this game state |
void |
sendChat()
Send the currently entered chat message to the server |
void |
setMessage(java.lang.String message)
Set the message being displayed |
void |
setWorld(java.lang.String username,
GameWorld world)
Set the game world being rendered |
void |
unapplyTaint(int x,
int y)
Unapply a rendering taint before rendering a particular tile |
void |
update(StateBasedGame game,
int delta)
Execute any game logic for this game state. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InGameState(LWJGLWindow window,
IsoClient client)
window - The window in which this state will be renderedclient - The client holding this state| Method Detail |
public void addDecal(Decal decal)
decal - The decal to be addedpublic void setMessage(java.lang.String message)
message - The message to display
public void setWorld(java.lang.String username,
GameWorld world)
username - The username of our playerworld - The world in which the game is running
public void init(StateBasedGame game)
throws java.io.IOException
GameState
init in interface GameStategame - The game to which this state belongs. (Probably
need to cast it to the game type you know it to be)
java.io.IOException - Indicates a failure to initialise a resourceGameState.init(org.newdawn.state.StateBasedGame)
public void render(StateBasedGame game,
int delta)
GameState
render in interface GameStategame - The game to which this state belongs. (Probably
need to cast it to the game type you know it to be)delta - The amount of time in milliseconds since last renderGameState.render(org.newdawn.state.StateBasedGame, int)
public void update(StateBasedGame game,
int delta)
GameState
update in interface GameStategame - The game to which this state belongs. (Probably
need to cast it to the game type you know it to be)delta - The amount of time in milliseconds since last renderGameState.update(org.newdawn.state.StateBasedGame, int)public void enterState(StateBasedGame game)
GameState
enterState in interface GameStategame - The game to which this state belongs. (Probably
need to cast it to the game type you know it to be)GameState.enterState(org.newdawn.state.StateBasedGame)public void leaveState(StateBasedGame game)
GameState
leaveState in interface GameStategame - The game to which this state belongs. (Probably
need to cast it to the game type you know it to be)GameState.leaveState(org.newdawn.state.StateBasedGame)
public void playerActorAdded(Actor actor,
java.lang.String username)
GameWorldListener
playerActorAdded in interface GameWorldListeneractor - The actor that was addedusername - The username of the player that the actor
was added for.GameWorldListener.playerActorAdded(org.newdawn.asd.data.Actor, java.lang.String)public void laggedOut()
GameWorldListener
laggedOut in interface GameWorldListenerGameWorldListener.laggedOut()
public void addChatMessage(java.lang.String source,
java.lang.String message)
source - The name of the source of the messagemessage - The message to be displayedpublic void clearChat()
public void sendChat()
public void actorRemoved(Actor actor)
GameWorldListener
actorRemoved in interface GameWorldListeneractor - The actor that was removedGameWorldListener.actorRemoved(org.newdawn.asd.data.Actor)public void release()
public void reinit(StateBasedGame game)
throws java.io.IOException
GameState
reinit in interface GameStategame - The game to which this state belongs
java.io.IOException - Indicates a failure to reload resourcesGameState.reinit(org.newdawn.state.StateBasedGame)
public void applyTaint(int x,
int y)
TileTainter
applyTaint in interface TileTainterx - The x position of the tile being renderedy - The y position of the tile being renderedTileTainter.applyTaint(int, int)
public void unapplyTaint(int x,
int y)
TileTainter
unapplyTaint in interface TileTainterx - The x position of the tile being renderedy - The y position of the tile being renderedTileTainter.unapplyTaint(int, int)
public void newMapCreated(Actor cause,
Map map)
GameWorldListener
newMapCreated in interface GameWorldListenercause - The actor causing this map to be createdmap - The map that has been createdGameWorldListener.newMapCreated(org.newdawn.asd.data.Actor, org.newdawn.asd.data.Map)
public void actorChangedMap(Actor actor,
Map map)
GameWorldListener
actorChangedMap in interface GameWorldListeneractor - The actor changing mapsmap - The map they've changed toGameWorldListener.actorChangedMap(org.newdawn.asd.data.Actor, org.newdawn.asd.data.Map)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||