Changeset 5750 in orxonox.OLD for trunk/src/world_entities/weapons/aim.h
- Timestamp:
- Nov 24, 2005, 12:13:22 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/aim.h
r5557 r5750 12 12 // FORWARD DECLARATION 13 13 class Model; 14 class Text; 14 15 class Material; 15 16 class TiXmlElement; 17 template<class T> class tAnimation; 16 18 17 19 //! An Aim for zooming in on Targets. 20 /** 21 * An Aim is a PNode, that is connected, to the Target, it has aquired 22 * The target becomes, if selected its Parent. 23 * 24 * Also the Aim is a Element2D, as it draws a cross onto the Target. 25 */ 18 26 class Aim : public PNode, public Element2D { 19 27 20 28 public: 21 Aim( const TiXmlElement* root = NULL);29 Aim(PNode* source, const TiXmlElement* root = NULL); 22 30 virtual ~Aim(); 23 31 … … 25 33 void loadParams(const TiXmlElement* root); 26 34 35 inline void setSource(PNode* source) { this->source = source; }; 36 27 37 inline void selectTarget(PNode* target) { this->setParent(target); }; 28 38 inline PNode* getTarget(PNode* target) { return this->getParent(); }; 29 39 40 void searchTarget(float range); 30 41 31 42 void setSize(float size); … … 40 51 Material* material; //!< a material for the Aim. 41 52 float rotationSpeed; //!< Speed of the Rotation. 53 tAnimation<Aim>* anim; 54 55 PNode* source; //!< Where this Shot has come from. 56 57 Text* text; //!< A Text to display onto this Node. (distance to Target) 42 58 }; 43 59
Note: See TracChangeset
for help on using the changeset viewer.