4.1 Introduction
Game servers are launched by the main GGZ server and receive events on one
dedicated file descriptor. There are different event types:
- STATE: indicates that the state has changed (see below)
- JOIN: a player has joined the game
- LEAVE: player has left the game
- SEAT: seat occupation has changed
- SPECTATOR_JOIN: a spectator came to watch the game
- SPECTATOR_LEAVE: spectator went away
- SPECTATOR_SEAT: spectator has joined or left
- PLAYER_DATA: one of the players (clients) sent some data
- SPECTATOR_DATA: data sent from random spectators
- LOG: log message has arrived
- ERROR: an error has occured
The states in which a game server can be are:
- STATE_CREATED
- STATE_WAITING
- STATE_PLAYING
- STATE_DONE
In order to ease game development, the ggzdmod library has been written, which
comes with extensive documentation.
See http://www.ggzgamingzone.org/docs/api/ggzdmod/html/ggzdmod_8h.html for the
online documentation, which is also available as man page (man 3 ggzdmod.h).
This document was generated
by Abel Cheung on December, 2 2004
using texi2html