Changeset 6424 in orxonox.OLD for trunk/src/world_entities/power_ups/power_up.cc
- Timestamp:
- Jan 7, 2006, 11:07:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/power_ups/power_up.cc
r6282 r6424 25 25 PowerUp::PowerUp(float r, float g, float b) 26 26 { 27 this->setClassID(CL_POWER_UP, "PowerUp"); 28 27 29 this->respawnType = RESPAWN_NONE; 28 30 /* if(!PowerUp::sphereModel) {*/ … … 52 54 void PowerUp::collidesWith (WorldEntity* entity, const Vector& location) 53 55 { 54 if(entity->isA(CL_EXTENDABLE))56 if(entity->isA(CL_EXTENDABLE)) 55 57 { 56 58 if(dynamic_cast<Extendable*>(entity)->pickup(this)) … … 94 96 } 95 97 98 /** 99 * data copied in data will bee sent to another host 100 * @param data pointer to data 101 * @param maxLength max length of data 102 * @return the number of bytes writen 103 */ 104 int PowerUp::readState( byte * data, int maxLength ) 105 { 106 SYNCHELP_WRITE_BEGIN(); 107 SYNCHELP_WRITE_FKT( WorldEntity::readState ); 108 return SYNCHELP_WRITE_N; 109 } 110 111 /** 112 * Writes data from network containing information about the state 113 * @param data pointer to data 114 * @param length length of data 115 * @param sender hostID of sender 116 */ 117 int PowerUp::writeState( const byte * data, int length, int sender ) 118 { 119 SYNCHELP_READ_BEGIN(); 120 SYNCHELP_READ_FKT( WorldEntity::writeState ); 121 return SYNCHELP_READ_N; 122 } 123
Note: See TracChangeset
for help on using the changeset viewer.