Changeset 6955 in orxonox.OLD for branches/network/src/world_entities
- Timestamp:
- Feb 1, 2006, 4:20:47 PM (20 years ago)
- Location:
- branches/network/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/playable.cc
r6954 r6955 47 47 48 48 this->setSynchronized(true); 49 50 this->score = 0; 51 this->oldScore = 0; 49 52 50 53 … … 275 278 } 276 279 280 #define DATA_FLAGS 1 281 #define DATA_SCORE 2 282 277 283 #define FLAGS_bFire 1 278 284 … … 308 314 bool Playable::needsReadSync( ) 309 315 { 316 //if ( score != oldScore ) 317 // return true; 318 310 319 byte flags = 0; 311 320 -
branches/network/src/world_entities/playable.h
r6950 r6955 59 59 int readSync(byte* data, int maxLength ); 60 60 bool needsReadSync(); 61 62 inline void setScore( int score ) { this->score = score; } 63 inline int getScore() { return this->score; } 61 64 62 65 protected: … … 74 77 bool bFire; //!< If the Ship is firing. 75 78 int oldFlags; //!< Used for synchronisation 79 80 int score; 81 int oldScore; 76 82 77 83 //HACK: explosion emitter
Note: See TracChangeset
for help on using the changeset viewer.