#include <stdint.h>
#include <vector>
Go to the source code of this file.
|
#define | NetPlayerNameSize 16 |
|
#define | MaxNetworkCommands 9 |
|
enum | _ic_message_subtype_ {
ICMHello,
ICMConfig,
ICMEngineMismatch,
ICMLuaFilesMismatch,
ICMEngineConfMismatch,
ICMMapUidMismatch,
ICMGameFull,
ICMWelcome,
ICMWaiting,
ICMMap,
ICMState,
ICMResync,
ICMServerQuit,
ICMGoodBye,
ICMSeeYou,
ICMGo,
ICMAYT,
ICMIAH
} |
|
enum | _message_type_ {
MessageNone,
MessageInit_FromClient,
MessageInit_FromServer,
MessageSync,
MessageSelection,
MessageQuit,
MessageResend,
MessageChat,
MessageCommandStop,
MessageCommandStand,
MessageCommandDefend,
MessageCommandFollow,
MessageCommandMove,
MessageCommandRepair,
MessageCommandAutoRepair,
MessageCommandAttack,
MessageCommandGround,
MessageCommandPatrol,
MessageCommandBoard,
MessageCommandUnload,
MessageCommandBuild,
MessageCommandDismiss,
MessageCommandResourceLoc,
MessageCommandResource,
MessageCommandReturn,
MessageCommandTrain,
MessageCommandCancelTrain,
MessageCommandUpgrade,
MessageCommandCancelUpgrade,
MessageCommandResearch,
MessageCommandCancelResearch,
MessageExtendedCommand,
MessageCommandSpellCast
} |
|
enum | _extended_message_type_ { ExtendedMessageDiplomacy,
ExtendedMessageSharedVision
} |
|
#define MaxNetworkCommands 9 |
#define NetPlayerNameSize 16 |
Number of bytes in the name of a network player, including the terminating null character.
Network extended message types.
Enumerator |
---|
ExtendedMessageDiplomacy |
|
ExtendedMessageSharedVision |
Change diplomacy.
Change shared vision
|
Network init config message subtypes (menu state machine).
Enumerator |
---|
ICMHello |
|
ICMConfig |
Client Request.
|
ICMEngineMismatch |
Setup message configure clients.
|
ICMLuaFilesMismatch |
Stratagus engine version doesn't match.
|
ICMEngineConfMismatch |
Network protocol version doesn't match.
|
ICMMapUidMismatch |
UNUSED:Engine configuration isn't identical.
|
ICMGameFull |
MAP UID doesn't match.
|
ICMWelcome |
No player slots available.
|
ICMWaiting |
Acknowledge for new client connections.
|
ICMMap |
Client has received Welcome and is waiting for Map/State.
|
ICMState |
MapInfo (and Mapinfo Ack)
|
ICMResync |
StateInfo.
|
ICMServerQuit |
Ack StateInfo change.
|
ICMGoodBye |
Server has quit game.
|
ICMSeeYou |
Client wants to leave game.
|
ICMGo |
Client has left game.
|
ICMAYT |
Client is ready to run.
|
ICMIAH |
Server asks are you there.
Client answers I am here
|
Network message types.
- Todo:
- cleanup the message types.
Enumerator |
---|
MessageNone |
|
MessageInit_FromClient |
When Nothing Is Happening.
|
MessageInit_FromServer |
Start connection.
|
MessageSync |
Connection reply.
|
MessageSelection |
Heart beat.
|
MessageQuit |
Update a Selection from Team Player.
|
MessageResend |
Quit game.
|
MessageChat |
Resend message.
|
MessageCommandStop |
Chat message.
|
MessageCommandStand |
Unit command stop.
|
MessageCommandDefend |
Unit command stand ground.
|
MessageCommandFollow |
Unit command defend.
|
MessageCommandMove |
Unit command follow.
|
MessageCommandRepair |
Unit command move.
|
MessageCommandAutoRepair |
Unit command repair.
|
MessageCommandAttack |
Unit command autorepair.
|
MessageCommandGround |
Unit command attack.
|
MessageCommandPatrol |
Unit command attack ground.
|
MessageCommandBoard |
Unit command patrol.
|
MessageCommandUnload |
Unit command board.
|
MessageCommandBuild |
Unit command unload.
|
MessageCommandDismiss |
Unit command build building.
|
MessageCommandResourceLoc |
Unit command dismiss unit.
|
MessageCommandResource |
Unit command resource location.
|
MessageCommandReturn |
Unit command resource.
|
MessageCommandTrain |
Unit command return goods.
|
MessageCommandCancelTrain |
Unit command train.
|
MessageCommandUpgrade |
Unit command cancel training.
|
MessageCommandCancelUpgrade |
Unit command upgrade.
|
MessageCommandResearch |
Unit command cancel upgrade.
|
MessageCommandCancelResearch |
Unit command research.
|
MessageExtendedCommand |
Unit command cancel research.
|
MessageCommandSpellCast |
Command is the next byte.
Unit command spell cast
|
(C) Copyright 1998-2012 by The