Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 11, 2005, 5:45:27 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: loadParams and timing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/weapons/crosshair.h

    r4830 r4832  
    1515class Model;
    1616class Material;
     17class TiXmlElement;
    1718
    1819//! A class that enables the
     
    2021
    2122 public:
    22   Crosshair();
     23  Crosshair(const TiXmlElement* root = NULL);
    2324  virtual ~Crosshair();
    2425
     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; };
    2533
    2634  virtual void process(const Event &event);
    27 
    2835  void tick(float dt);
    2936  void draw();
     
    3239   float            position2D[2];        //!< The 2D-position on the screen
    3340
    34    Model*           model;                //!< A model for the crosshair representing the Aim
    3541   Material*        material;             //!< a material for the Aim.
    3642   float            rotation;             //!< a rotation of the aim.
     43   float            rotationSpeed;        //!< Speed of the Rotation.
    3744   float            size;                 //!< The Size of the Crosshair (in % of screen resolution 1 is fullscreen)
    3845};
Note: See TracChangeset for help on using the changeset viewer.