netorcai.message

Members

Functions

parseDoInitMessage
DoInitMessage parseDoInitMessage(JSONValue o)

Parses a DO_INIT metaprotocol message

parseDoTurnMessage
DoTurnMessage parseDoTurnMessage(JSONValue v)

Parses a DO_TURN metaprotocol message

parseGameEndsMessage
GameEndsMessage parseGameEndsMessage(JSONValue o)

Parses a GAME_ENDS metaprotocol message

parseGameStartsMessage
GameStartsMessage parseGameStartsMessage(JSONValue o)

Parses a GAME_STARTS metaprotocol message

parsePlayerActions
PlayerActions parsePlayerActions(JSONValue o)

Parses the playerActions field of a DO_TURN metaprotocol message

parsePlayerInfo
PlayerInfo parsePlayerInfo(JSONValue o)

Parses a player information (in GAME_STARTS and GAME_ENDS messages)

parsePlayersInfo
PlayerInfo[] parsePlayersInfo(JSONValue[] array)

Parses several player information (in GAME_STARTS and GAME_ENDS messages)

parseTurnMessage
TurnMessage parseTurnMessage(JSONValue o)

Parses a TURN metaprotocol message

Structs

DoInitMessage
struct DoInitMessage

Content of a DO_INIT metaprotocol message

DoTurnMessage
struct DoTurnMessage

Content of a DO_TURN metaprotocol message

GameEndsMessage
struct GameEndsMessage

Content of a GAME_ENDS metaprotocol message

GameStartsMessage
struct GameStartsMessage

Content of a GAME_STARTS metaprotocol message

LoginAckMessage
struct LoginAckMessage

Content of a LOGIN_ACK metaprotocol message

PlayerActions
struct PlayerActions

Convenient struct for the player actions of a DO_TURN metaprotocol message

PlayerInfo
struct PlayerInfo

Stores information about one player

TurnMessage
struct TurnMessage

Content of a TURN metaprotocol message

Meta