Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages | Examples

ClientData Class Reference
[GanefClient]

This interface must be implemented by data on the client. It is very important that the constructor of the subclass calls the constructor of ClientData before reading from the framework packet. This ensures that reading of data is not mixed. More...

#include <clientdata.h>

Inheritance diagram for ClientData:

FrameworkData List of all members.

Public Member Functions

 ClientData (ClientFramework *f, ClientPacket *p)
virtual ~ClientData ()
virtual void updatePacket (ClientFramework *f, unsigned char updatetype, ClientPacket *packet)=0
 This method will be called when ever we receive an update packet from the server.
ClientFrameworkgetFramework () const
 This method just returns the framework-pointer.

Protected Member Functions

void enqueuePacket (ClientPacket *packet) const

Protected Attributes

ClientFrameworkclient_framework

Detailed Description

This interface must be implemented by data on the client. It is very important that the constructor of the subclass calls the constructor of ClientData before reading from the framework packet. This ensures that reading of data is not mixed.

Author:
Lars Langer and Emanuel Greisen
Examples:

testclient/testclientframework.cpp, testclient/testclientframework.h, testclient/testclientsnakebite.cpp, and testclient/testclientsnakebite.h.

Definition at line 41 of file clientdata.h.


The documentation for this class was generated from the following files:
Generated on Mon Feb 6 12:24:51 2006 for Ganef by  doxygen 1.4.4