Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5997 in orxonox.OLD for trunk/src/lib/network/synchronizeable.h


Ignore:
Timestamp:
Dec 9, 2005, 12:41:31 PM (20 years ago)
Author:
patrick
Message:

merged the network branche a second time because there where some more changes in the code: svn merge -r5991:HEAD branches/network trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/network/synchronizeable.h

    r5996 r5997  
    77#define _SYNCHRONIZEABLE_H
    88
    9 #include <base_object.h>
     9#include "base_object.h"
    1010#include "netdefs.h"
     11
     12
     13
     14#include <vector>
     15#include <list>
     16
     17//State constants: They have to be of the form 2^n
     18#define STATE_SERVER 1
     19#define STATE_OUTOFSYNC 2
     20
    1121
    1222class Synchronizeable : virtual public BaseObject
     
    2232    virtual void      writeDebug() const;
    2333    virtual void      readDebug() const;
     34   
     35   
     36   
     37   
     38   
     39    void setIsServer(bool isServer);
     40    void setIsOutOfSync(bool outOfSync);
     41    bool isServer();
     42    bool isOutOfSync();
    2443
    2544  private:
    2645
    2746    int               uniqueID;
     47   
     48   
     49   
     50    //static std::vector<Synchronizeable*> classList;
     51    int owner;
     52    int hostID;
     53    int state;
     54    std::list<int> synchronizeRequests;
    2855
    2956  };
Note: See TracChangeset for help on using the changeset viewer.