Changeset 9650 in orxonox.OLD for branches/proxy/src/world_entities
- Timestamp:
- Jul 31, 2006, 3:03:15 PM (18 years ago)
- Location:
- branches/proxy/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/world_entities/playable.cc
r9625 r9650 69 69 70 70 this->teamChangeHandler = registerVarId( new SynchronizeableInt( &this->teamId, &this->teamId, "team-id", PERMISSION_MASTER_SERVER ) ); 71 71 72 registerVar( new SynchronizeableInt( &score, &score, "score", PERMISSION_MASTER_SERVER ) ); 72 73 registerVar( new SynchronizeableBool( &bFire, &bFire, "bFire", PERMISSION_OWNER)); … … 140 141 bool Playable::addWeapon(Weapon* weapon, int configID, int slotID) 141 142 { 143 weapon->setOwner(this->getOwner()); 144 145 142 146 if(this->weaponMan.addWeapon(weapon, configID, slotID)) 143 147 { -
branches/proxy/src/world_entities/space_ships/turbine_hover.cc
r9647 r9650 277 277 printf("::::::::::::::::: TEAM ::: %d\n", teamID); 278 278 if (teamID == 0) 279 { 279 280 this->setBoostColor(Color::blue); 281 } 280 282 else if (teamID == 1) 283 { 281 284 this->setBoostColor(Color::red); 282 285 } 286 287 ///HACK this is very much hard coded.set the owner of the weapons 288 this->getWeaponManager().getWeapon(0)->setOwner(/*SharedNetworkData::getInstance()->getHostID()*/ this->getOwner()); 289 this->getWeaponManager().getWeapon(1)->setOwner(/*SharedNetworkData::getInstance()->getHostID()*/this->getOwner()); 283 290 284 291 //choose collision list … … 290 297 toList( OM_GROUP_01); 291 298 } 299 292 300 293 301 // set the local team id, very important -
branches/proxy/src/world_entities/weapons/laser_cannon.cc
r9235 r9650 121 121 return; 122 122 123 // make this to let the onKill(...) fuction get the stuff 124 pj->setOwner(this->getOwner()); 125 123 126 pj->setParent(PNode::getNullParent()); 124 127 -
branches/proxy/src/world_entities/weapons/test_gun.cc
r9002 r9650 177 177 if (pj == NULL) 178 178 return; 179 180 // set the owner 181 pj->setOwner(this->getOwner()); 179 182 180 183 pj->setParent(PNode::getNullParent());
Note: See TracChangeset
for help on using the changeset viewer.