|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGameCanvas
client.framework.views.LobbyView
public class LobbyView
The screen shown as default when starting the application.
This screen does not contain any information such as
player lists, but gets the information its draws through
the AbstractGame
object.
In addition to drawing contents to the screen, this class
is responsible for detecting and handling user inputs
when this screen is active.
Constructor Summary | |
---|---|
LobbyView(AbstractGame model)
Contructor for this class. |
Method Summary | |
---|---|
void |
commandAction(Command command,
Displayable displayable)
Method implemented from CommandListener . |
void |
notifyAboutPlayerListChanged()
|
void |
paint(Graphics graphics)
Overrides the class' default paint method and is called whenever the contents of the Lobby change. |
void |
setGameStarted(boolean started)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LobbyView(AbstractGame model)
model
- The game model.Method Detail |
---|
public void commandAction(Command command, Displayable displayable)
CommandListener
. Called
whenever the user selects one of the commands, and performs
corresponding actions. These actions are either a change of
state in this object, or a method found in
AbstractGame
.
command
- The command selected by the user.displayable
- This screen.LobbyView#paint(javax.microedition.lcdui.Graphics)
public void paint(Graphics graphics)
graphics
- The default graphics object used for this GameCanvaspublic void setGameStarted(boolean started)
public void notifyAboutPlayerListChanged()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |