Changeset 3214 for code/trunk/src/orxonox/objects/worldentities
- Timestamp:
- Jun 23, 2009, 6:02:25 PM (15 years ago)
- Location:
- code/trunk/src/orxonox/objects/worldentities/pawns
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/worldentities/pawns/Pawn.cc
r3196 r3214 59 59 PawnManager::touch(); 60 60 this->bAlive_ = true; 61 this->fire_ = 0x0;62 this->firehack_ = 0x0;63 61 this->bReload_ = false; 64 62 … … 122 120 registerVariable(this->health_, variableDirection::toclient); 123 121 registerVariable(this->initialHealth_, variableDirection::toclient); 124 registerVariable(this->fire_, variableDirection::toserver);125 122 registerVariable(this->bReload_, variableDirection::toserver); 126 123 } … … 130 127 SUPER(Pawn, tick, dt); 131 128 132 // if (this->weaponSystem_ && GameMode::isMaster())133 // {134 // for (unsigned int firemode = 0; firemode < WeaponSystem::MAX_FIRE_MODES; firemode++)135 // if (this->fire_ & WeaponSystem::getFiremodeMask(firemode))136 // this->weaponSystem_->fire(firemode);137 //138 // if (this->bReload_)139 // this->weaponSystem_->reload();140 // }141 //142 // this->fire_ = this->firehack_;143 // this->firehack_ = 0x0;144 129 this->bReload_ = false; 145 130 -
code/trunk/src/orxonox/objects/worldentities/pawns/Pawn.h
r3196 r3214 137 137 138 138 WeaponSystem* weaponSystem_; 139 unsigned int fire_;140 unsigned int firehack_;141 139 bool bReload_; 142 140
Note: See TracChangeset
for help on using the changeset viewer.