Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 2, 2005, 2:05:58 AM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: synchronisable class commented, light altered

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/network/synchronisable.h

    r3476 r4471  
     1/*!
     2    \file synchronisable.h
     3    \brief informations about objects, that needs to be synchronized over the network
     4
     5    this is just an idea, no implementatin yet. but sounds very good to me!
     6*/
    17
    28#ifndef _SYNCHRONISABLE_H
    39#define _SYNCHRONISABLE_H
    410
    5 #include "data_tank.h"
    611
    712
     13//! this is a... ehm... i have no idea...
     14typedef struct worldEntityState
     15{
     16  int    entity;                   //!< probably a entity id? hm...
     17};
     18
     19
     20//! an abstract class to handle the synchronisation process
    821class Synchronisable {
    922
     
    1225  ~Synchronisable ();
    1326
    14   struct worldEntityState {
    15     /*Vector position; */
    16     /*Vector orientation; */
    17   };
     27  worldEntityState* getState();
     28  void setState(worldEntityState* state);
    1829
    19   worldEntityState* getState();
    20   void setState(worldEntityState*);
    21 
     30  worldentityState state;            //!< the current state of the object
    2231};
    2332
Note: See TracChangeset for help on using the changeset viewer.