Changeset 6955 in orxonox.OLD
- Timestamp:
- Feb 1, 2006, 4:20:47 PM (19 years ago)
- Location:
- branches/network/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/synchronizeable.h
r6937 r6955 40 40 NWT_HS_NGM_ID, 41 41 42 NWT_PL_B, 42 43 NWT_PL_FLAGS, 44 NWT_PL_SCORE, 43 45 44 46 NWT_PN_BO_WRITESTATE, -
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.