Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/world_entities/weapons/crosshair.h @ 4830

Last change on this file since 4830 was 4830, checked in by bensch, 20 years ago

orxonox/trunk: implemented aim

File size: 913 bytes
Line 
1/*!
2    \file crosshair.h
3    \brief Definition of ...
4
5*/
6
7#ifndef _CROSSHAIR_H
8#define _CROSSHAIR_H
9
10#include "event_listener.h"
11#include "p_node.h"
12#include "vector.h"
13
14// FORWARD DEFINITION
15class Model;
16class Material;
17
18//! A class that enables the
19class Crosshair : public PNode, public EventListener {
20
21 public:
22  Crosshair();
23  virtual ~Crosshair();
24
25
26  virtual void process(const Event &event);
27
28  void tick(float dt);
29  void draw();
30
31 private:
32   float            position2D[2];        //!< The 2D-position on the screen
33
34   Model*           model;                //!< A model for the crosshair representing the Aim
35   Material*        material;             //!< a material for the Aim.
36   float            rotation;             //!< a rotation of the aim.
37   float            size;                 //!< The Size of the Crosshair (in % of screen resolution 1 is fullscreen)
38};
39
40#endif /* _CROSSHAIR_H */
Note: See TracBrowser for help on using the repository browser.