Changeset 10772 in orxonox.OLD for branches/presentation/src/world_entities/weapons/weapon.h
- Timestamp:
- Jul 2, 2007, 3:57:53 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/weapons/weapon.h
r10771 r10772 193 193 194 194 Animation3D* getShootAnim(int barrel, int seg) { return this->shootAnim[barrel][seg]; }; 195 // void setShootAnim(int barrel, int seg, PNode* component) { this->shootAnim[barrel][seg] = this->getAnimation(barrel, seg, component); };196 197 // void init2();198 // void deconstr();199 195 200 196 inline int getPreferedSide() { return this->preferedSide; } … … 203 199 inline void setEnergyWidgetInitialized(bool b) {this->isEnergyWidgetInitialized = b;}; 204 200 201 //some functions for conveneance 205 202 inline const Vector& getObjComp(int barrel, int seg) const { return this->objComp[barrel][seg]->getAbsCoor(); }; 206 203 inline const float getObjCompx(int barrel, int seg) const { return this->objComp[barrel][seg]->getAbsCoor().x; }; … … 259 256 float maxCharge; //!< The maximal energy to be loaded onto one projectile (this is only availible if chargeable is enabled) 260 257 261 //OrxGui::GLGuiEnergyWidgetVertical* energyWidget;262 263 258 PNode* defaultTarget; //!< A target for targeting Weapons. 264 259 … … 277 272 OrxSound::SoundBuffer soundBuffers[WA_ACTION_COUNT]; //!< SoundBuffers for all actions @see WeaponAction. 278 273 279 PNode* emissionPoint[MAX_BARRELS]; //!< The point, where the projectiles are emitted. (this is coppled with the Weapon by default)274 PNode* emissionPoint[MAX_BARRELS]; //!< The point, where the projectiles are emitted. 280 275 281 276 bool hideInactive; //!< Hides the Weapon if it is inactive … … 287 282 int barrels; //!< # of barrels (max 4) 288 283 int segs; //!< # of segments, one barrel has (max 3) 289 int activeBarrel; 284 int activeBarrel; //!< set # of active barrel, count array wise (aka. 0 is the first) 290 285 Animation3D* shootAnim[MAX_BARRELS][MAX_SEGMENTS]; 291 286 PNode* objComp[MAX_BARRELS][MAX_SEGMENTS];
Note: See TracChangeset
for help on using the changeset viewer.