Changeset 6784 in orxonox.OLD for branches/network/src/world_entities/power_ups
- Timestamp:
- Jan 26, 2006, 8:03:40 PM (19 years ago)
- Location:
- branches/network/src/world_entities/power_ups
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/power_ups/laser_power_up.cc
r6512 r6784 126 126 SYNCHELP_READ_BEGIN(); 127 127 128 SYNCHELP_READ_FKT( PowerUp::writeState );128 SYNCHELP_READ_FKT( PowerUp::writeState, NWT_LPU_WE_STATE ); 129 129 130 130 return SYNCHELP_READ_N; … … 148 148 SYNCHELP_WRITE_BEGIN(); 149 149 150 SYNCHELP_WRITE_FKT( PowerUp::readState );150 SYNCHELP_WRITE_FKT( PowerUp::readState, NWT_LPU_WE_STATE ); 151 151 152 152 return SYNCHELP_WRITE_N; -
branches/network/src/world_entities/power_ups/param_power_up.cc
r6695 r6784 131 131 SYNCHELP_READ_BEGIN(); 132 132 133 SYNCHELP_READ_FKT( PowerUp::writeState );133 SYNCHELP_READ_FKT( PowerUp::writeState, NWT_PPU_WE_STATE ); 134 134 135 135 int i; 136 SYNCHELP_READ_INT( i );136 SYNCHELP_READ_INT( i, NWT_PPU_TYPE ); 137 137 this->type = (EnumParamPowerUpType)i; 138 SYNCHELP_READ_FLOAT( this->value );138 SYNCHELP_READ_FLOAT( this->value, NWT_PPU_VALUE ); 139 139 140 140 if ( this->value != 0 ) 141 141 { 142 SYNCHELP_READ_FLOAT( this->min_value );143 SYNCHELP_READ_FLOAT( this->max_value );142 SYNCHELP_READ_FLOAT( this->min_value, NWT_PPU_MINVALUE ); 143 SYNCHELP_READ_FLOAT( this->max_value, NWT_PPU_MAXVALUE ); 144 144 respawn(); 145 145 } … … 165 165 SYNCHELP_WRITE_BEGIN(); 166 166 167 SYNCHELP_WRITE_FKT( PowerUp::readState );167 SYNCHELP_WRITE_FKT( PowerUp::readState, NWT_PPU_WE_STATE ); 168 168 169 169 int i = (int)this->type; 170 SYNCHELP_WRITE_INT( i );171 SYNCHELP_WRITE_FLOAT( this->value );170 SYNCHELP_WRITE_INT( i, NWT_PPU_TYPE ); 171 SYNCHELP_WRITE_FLOAT( this->value, NWT_PPU_VALUE ); 172 172 173 173 if ( this->value != 0 ) 174 174 { 175 SYNCHELP_WRITE_FLOAT( this->min_value );176 SYNCHELP_WRITE_FLOAT( this->max_value );175 SYNCHELP_WRITE_FLOAT( this->min_value, NWT_PPU_MINVALUE ); 176 SYNCHELP_WRITE_FLOAT( this->max_value, NWT_PPU_MAXVALUE ); 177 177 } 178 178 -
branches/network/src/world_entities/power_ups/power_up.cc
r6710 r6784 124 124 { 125 125 SYNCHELP_WRITE_BEGIN(); 126 SYNCHELP_WRITE_FKT( WorldEntity::readState );126 SYNCHELP_WRITE_FKT( WorldEntity::readState, NWT_PU_WE_STATE ); 127 127 return SYNCHELP_WRITE_N; 128 128 } … … 138 138 { 139 139 SYNCHELP_READ_BEGIN(); 140 SYNCHELP_READ_FKT( WorldEntity::writeState );140 SYNCHELP_READ_FKT( WorldEntity::writeState, NWT_PU_WE_STATE ); 141 141 return SYNCHELP_READ_N; 142 142 } -
branches/network/src/world_entities/power_ups/turret_power_up.cc
r6695 r6784 135 135 SYNCHELP_READ_BEGIN(); 136 136 137 SYNCHELP_READ_FKT( PowerUp::writeState );137 SYNCHELP_READ_FKT( PowerUp::writeState, NWT_TPU_WE_STATE ); 138 138 139 139 return SYNCHELP_READ_N; … … 156 156 SYNCHELP_WRITE_BEGIN(); 157 157 158 SYNCHELP_WRITE_FKT( PowerUp::readState );158 SYNCHELP_WRITE_FKT( PowerUp::readState, NWT_TPU_WE_STATE ); 159 159 160 160 return SYNCHELP_WRITE_N; -
branches/network/src/world_entities/power_ups/weapon_power_up.cc
r6710 r6784 100 100 SYNCHELP_READ_BEGIN(); 101 101 102 SYNCHELP_READ_FKT( PowerUp::writeState );102 SYNCHELP_READ_FKT( PowerUp::writeState, NWT_WPU_WE_STATE ); 103 103 104 104 //TODO: sync weapon class ( see loadParams ) … … 124 124 SYNCHELP_WRITE_BEGIN(); 125 125 126 SYNCHELP_WRITE_FKT( PowerUp::readState );126 SYNCHELP_WRITE_FKT( PowerUp::readState, NWT_WPU_WE_STATE ); 127 127 128 128 //TODO: sync weapon class ( see loadParams )
Note: See TracChangeset
for help on using the changeset viewer.