Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4471 in orxonox.OLD for orxonox/trunk/src/lib/network


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

orxonox/trunk: synchronisable class commented, light altered

Location:
orxonox/trunk/src/lib/network
Files:
2 edited

Legend:

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

    r3476 r4471  
    1616*/
    1717
     18#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_NETWORK
    1819
    1920#include "synchronisable.h"
     
    2324
    2425
    25 
     26/**
     27   \brief constructor for this class
     28 */
    2629Synchronisable::Synchronisable () {}
    2730
    2831
    29 
     32/**
     33   \brief deconstructor for this class
     34*/
    3035Synchronisable::~Synchronisable () {}
    3136
    3237
     38/**
     39   \brief gets the state of this object
     40   \returns the state
     41*/
     42worldEntityState* Synchronisable::getState()
     43{}
     44
     45
     46/**
     47   \brief sets the state of this object
     48   \param state: the current state
     49*/
     50void Synchronisable::setState(worldEntityState* state)
     51{}
  • 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.