Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 8, 2005, 5:13:05 PM (18 years ago)
Author:
bwuest
Message:

Synchronizeable.h and Synchronizeable.cc changed: state and functions to get/set the state added

File:
1 edited

Legend:

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

    r5829 r5992  
    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.