Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/lib/network/synchronizeable.h @ 5829

Last change on this file since 5829 was 5829, checked in by patrick, 18 years ago

network: much work on multiplayability, does not yet work

File size: 634 bytes
Line 
1/*!
2 * @file connection_monitor.h
3    \brief interface for all classes that have to be synchronized
4 */
5
6#ifndef _SYNCHRONIZEABLE_H
7#define _SYNCHRONIZEABLE_H
8
9#include <base_object.h>
10#include "netdefs.h"
11
12class Synchronizeable : virtual public BaseObject
13  {
14  public:
15
16    Synchronizeable(const char* name);
17    Synchronizeable();
18    ~Synchronizeable();
19
20    virtual void      writeBytes(const byte* data, int length);
21    virtual int       readBytes(byte* data);
22    virtual void      writeDebug() const;
23    virtual void      readDebug() const;
24
25  private:
26
27    int               uniqueID;
28
29  };
30#endif /* _SYNCHRONIZEABLE_H */
Note: See TracBrowser for help on using the repository browser.