Changeset 5556 in orxonox.OLD for trunk/src/world_entities/weapons/aim.h
- Timestamp:
- Nov 13, 2005, 2:49:48 PM (18 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/aim.h
r5554 r5556 1 1 /*! 2 * @file crosshair.h 3 * Definition of ... 2 * @file aim.h 3 * Definition of 4 */ 4 5 5 */ 6 7 #ifndef _CROSSHAIR_H 8 #define _CROSSHAIR_H 6 #ifndef _AIM_H 7 #define _AIM_H 9 8 10 9 #include "p_node.h" 11 10 #include "element_2d.h" 12 #include "event_listener.h"13 14 #include "vector.h"15 16 17 11 // FORWARD DECLARATION 18 12 class Model; … … 20 14 class TiXmlElement; 21 15 22 //! A class that enables the23 class Crosshair : public PNode, public Element2D, public EventListener{16 //! An Aim for zooming in on Targets. 17 class Aim : public PNode, public Element2D { 24 18 25 19 public: 26 Crosshair(const TiXmlElement* root = NULL);27 virtual ~ Crosshair();20 Aim(const TiXmlElement* root = NULL); 21 virtual ~Aim(); 28 22 29 23 void init(); … … 35 29 void setRotationSpeed(float rotationSpeed) { this->rotationSpeed = rotationSpeed; }; 36 30 37 virtual void process(const Event &event);38 31 virtual void tick(float dt); 39 32 virtual void draw() const; … … 44 37 }; 45 38 46 #endif /* _ CROSSHAIR_H */39 #endif /* _AIM_H */
Note: See TracChangeset
for help on using the changeset viewer.