# class GGZCoreGame

More...

Definition | `#include <GGZCoreGame.h>`
List of all Methods

Annotated List
Files
Globals
Hierarchy
Index

#### Public Types

- enum GGZCoreGameEvent { launched, launchfail, negotiated, negotiatefail, data, over, ioerror, protoerror }

#### Public Methods

- GGZCoreGame ()
- ~GGZCoreGame ()
- int addHook (const GGZCoreGameEvent event, const GGZHookFunc func)
- int addHook (const GGZCoreGameEvent event, const GGZHookFunc func, void* data)
- int removeHook (const GGZCoreGameEvent event, const GGZHookFunc func)
- int removeHook (const GGZCoreGameEvent event, const unsigned int id)
- int init (GGZModule* module)
- int fd ()
- GGZModule* module ()
- int launch ()
- int join ()
- int dataSend (char* buffer)
- int dataPending ()
- int dataRead ()
- int dataWrite ()

## Detailed Description

Every game is represented by an object of this type.

enum GGZCoreGameEvent { launched, launchfail, negotiated, negotiatefail, data, over, ioerror, protoerror }

### GGZCoreGameEvent

Events which can occur during a game.

GGZCoreGame ()

### GGZCoreGame

Constructor

~GGZCoreGame ()

### ~GGZCoreGame

Destructor

int addHook (const GGZCoreGameEvent event, const GGZHookFunc func)

### addHook

Add a simple callback to the game.

int addHook (const GGZCoreGameEvent event, const GGZHookFunc func, void* data)

### addHook

Add a callback with arguments.

int removeHook (const GGZCoreGameEvent event, const GGZHookFunc func)

### removeHook

Remove a callback from the game.

int removeHook (const GGZCoreGameEvent event, const unsigned int id)

### removeHook

Overloaded: Remove a callback on its id.

int init (GGZModule* module)

### init

Initialize this game.

int fd ()

### fd

Return the specific file descriptor.

GGZModule* module ()

### module

Return the associated module.

int launch ()

### launch

Launch this game.

int join ()

### join

Join this game.

int dataSend (char* buffer)

### dataSend

Send other data.

int dataPending ()

### dataPending

Control data flow.

int dataRead ()

### dataRead

Returns whether data is read.

int dataWrite ()

### dataWrite

Return whether data is written.

Generated by: josef on athlon500 on Tue Mar 19 23:18:22 2002, using kdoc 2.0a53.