Changeset 5750 in orxonox.OLD for trunk/src/world_entities/weapons/weapon_manager.h
- Timestamp:
- Nov 24, 2005, 12:13:22 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/weapon_manager.h
r5453 r5750 17 17 // FORWARD DECLARATION 18 18 template <class T> class tAnimation; 19 template <class T> class tIterator; 19 20 20 21 … … 70 71 void removeWeapon(Weapon* weapon, int configID = -1); 71 72 72 73 // FIXME :: 74 // bool hasFreeSlot(int configID, long capability = WTYPE_ALL) { return ( getNextFreeSlot(configID, capability ) != -1)? true : false; }; 73 75 74 76 void nextWeaponConfig(); … … 77 79 78 80 /** @returns a fixed target namely the Crosshair's 3D position */ 79 inline PNode* getFixedTarget() { return this->crosshair; }; 81 inline PNode* getFixedTarget() const { return this->crosshair; }; 82 PNode* getSomeTarget(); 83 PNode* getDistanceTarget(const PNode* carrier, float distance); 84 80 85 void fire(); 86 //! @TODO: implement this function (maybe also in Weapon itself) 87 void releaseFire(); 81 88 82 89 void tick(float dt); … … 85 92 void debug() const; 86 93 87 private:94 // private: 88 95 int getNextFreeSlot(int configID, long capability = WTYPE_ALL); 89 96 … … 102 109 Crosshair* crosshair; //!< an aim. 103 110 tAnimation<Crosshair>* crossHairSizeAnim; //!< An animation for the crosshair (scaling) 111 112 tIterator<BaseObject>* targetIterator; //!< An iterator for traversion lists of enemies. 104 113 };
Note: See TracChangeset
for help on using the changeset viewer.