Debian Codegraph @

docs/README.mapstart

raw
1 * Client executes the command "map" with the mapname given (SDLBackend::loadMap)
2 * IGame::mapLoad
3 * INetwork::openServer
4 * IFrontend::connect (to your own server) (cl_connect localhost port) (CmdConnect)
5 * INetwork::openClient
6 * ClientMap::onConnectionSuccess (IClientCallback)
7 * Network::update detects new connection on the server side and executes
8 IServerCallback::onConnection (SDLBackend)
9 * IGame::connect
10 * send LoadMapMessage to new connected client
11 * client handles the message with LoadMapHandler implementation by sending a
12 SpawnMessage to the server and loads the given map on the client side
13 * server reacts on the SpawnMessage with its SpawnHandler (create new player and
14 initialize it)
15 * server sends MapSettingsMessage to the client
16 * server sends InitDoneMessage to the client
17 * server sends InitWaitingMapMessage to the client
18 * put the player into the spawning queue (that is executed once the match started)
19 * client stores settings in it's client side map representation
20 * client can now fully initialize the client side map
21 * client sends ClientInitMessage to the server once it's ready
22 * server is now sending the already connected players to the client
23 * client executes IUIMapWindow::initWaitingForPlayers
24 * start the map by executing "start" command (Map::startMap) if we are in single
25 player mode
26 * in multiplayer mode the server admin has to trigger the start by forcing it
27 with the button that is available
28 * server reacts with StartMapHandler Map::startMap
29 * server spawns all the players in the queue
30 * server sends AddEntityMessage for each spawned player
31 * server sends StartMapMessage to all connected clients