Changeset 6419 in orxonox.OLD for branches/network/src/world_entities/power_ups/power_up.cc
- Timestamp:
- Jan 6, 2006, 6:19:30 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/power_ups/power_up.cc
r6413 r6419 54 54 void PowerUp::collidesWith (WorldEntity* entity, const Vector& location) 55 55 { 56 if(entity->isA(CL_EXTENDABLE))56 if(entity->isA(CL_EXTENDABLE)) 57 57 { 58 58 if(dynamic_cast<Extendable*>(entity)->pickup(this)) … … 96 96 } 97 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.