|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.asdf.common.GameController
com.asdf.plugins.hello.HelloGame
public class HelloGame
An example game framework provided by the ASDF group to get you a quick start on creating your own great games in our game server system. Intended to function as a first tutorial to working with our server software, not as a tutorial in game programming.
Constructor Summary | |
---|---|
HelloGame()
|
Method Summary | |
---|---|
void |
handleRequest(Request req)
Game logics requests something of you, if you want to do something about it, write some code here. |
void |
handleResponse(Response rsp)
Game logics has sent a response. |
void |
handleStateUpdate(StateUpdate stateUp)
Game logics has sent a state update message, informing you of the new state of the game world. |
void |
init(GameResponse arg0,
java.lang.String arg1,
AccountType arg2)
When the client is joining the game for the first time, if he wants to something special about it, this is the place. |
static void |
main(java.lang.String[] args)
Nothing important. |
void |
start()
When the game is started, this method is called. |
Methods inherited from class com.asdf.common.GameController |
---|
getConnectionHandler, getGameID, getID, setConnectionHandler, setGameID, setID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HelloGame()
Method Detail |
---|
public void start()
start
in class GameController
public void handleResponse(Response rsp)
rsp
- Response sent by server. Response is an object generated from
XML message using JAXB.public void handleRequest(Request req)
req
- Request sent by server. Request is an object generated from
XML message using JAXB.public void handleStateUpdate(StateUpdate stateUp)
stateUp
- StateUpdate sent by server. StateUpdate is an object generated from
XML message using JAXB.public void init(GameResponse arg0, java.lang.String arg1, AccountType arg2)
init
in class GameController
arg0
- Parameters received from server required to initialize thisarg1
- Account name of the user who is associated with this GameController.arg2
- Type of the user account. Some users might have more privileges than
others.
GameControllerpublic static void main(java.lang.String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |