Changeset 4832 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/crosshair.h
- Timestamp:
- Jul 11, 2005, 5:45:27 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/crosshair.h
r4830 r4832 15 15 class Model; 16 16 class Material; 17 class TiXmlElement; 17 18 18 19 //! A class that enables the … … 20 21 21 22 public: 22 Crosshair( );23 Crosshair(const TiXmlElement* root = NULL); 23 24 virtual ~Crosshair(); 24 25 26 void init(); 27 void loadParams(const TiXmlElement* root); 28 29 void setSize(float size); 30 void setTexture(const char* textureFile); 31 /** @param rotationSpeed the speed at what the crosshair should rotate */ 32 void setRotationSpeed(float rotationSpeed) { this->rotationSpeed = rotationSpeed; }; 25 33 26 34 virtual void process(const Event &event); 27 28 35 void tick(float dt); 29 36 void draw(); … … 32 39 float position2D[2]; //!< The 2D-position on the screen 33 40 34 Model* model; //!< A model for the crosshair representing the Aim35 41 Material* material; //!< a material for the Aim. 36 42 float rotation; //!< a rotation of the aim. 43 float rotationSpeed; //!< Speed of the Rotation. 37 44 float size; //!< The Size of the Crosshair (in % of screen resolution 1 is fullscreen) 38 45 };
Note: See TracChangeset
for help on using the changeset viewer.