Last change
on this file since 4617 was
4471,
checked in by patrick, 19 years ago
|
orxonox/trunk: synchronisable class commented, light altered
|
File size:
725 bytes
|
Line | |
---|
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 | */ |
---|
7 | |
---|
8 | #ifndef _SYNCHRONISABLE_H |
---|
9 | #define _SYNCHRONISABLE_H |
---|
10 | |
---|
11 | |
---|
12 | |
---|
13 | //! this is a... ehm... i have no idea... |
---|
14 | typedef struct worldEntityState |
---|
15 | { |
---|
16 | int entity; //!< probably a entity id? hm... |
---|
17 | }; |
---|
18 | |
---|
19 | |
---|
20 | //! an abstract class to handle the synchronisation process |
---|
21 | class Synchronisable { |
---|
22 | |
---|
23 | public: |
---|
24 | Synchronisable (); |
---|
25 | ~Synchronisable (); |
---|
26 | |
---|
27 | worldEntityState* getState(); |
---|
28 | void setState(worldEntityState* state); |
---|
29 | |
---|
30 | worldentityState state; //!< the current state of the object |
---|
31 | }; |
---|
32 | |
---|
33 | #endif /* _SYNCHRONISABLE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.