Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5556 in orxonox.OLD for trunk/src/world_entities/weapons/aim.h


Ignore:
Timestamp:
Nov 13, 2005, 2:49:48 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: added Aim-class

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/aim.h

    r5554 r5556  
    11/*!
    2  * @file crosshair.h
    3   *  Definition of ...
     2 * @file aim.h
     3 *  Definition of
     4 */
    45
    5 */
    6 
    7 #ifndef _CROSSHAIR_H
    8 #define _CROSSHAIR_H
     6#ifndef _AIM_H
     7#define _AIM_H
    98
    109#include "p_node.h"
    1110#include "element_2d.h"
    12 #include "event_listener.h"
    13 
    14 #include "vector.h"
    15 
    16 
    1711// FORWARD DECLARATION
    1812class Model;
     
    2014class TiXmlElement;
    2115
    22 //! A class that enables the
    23 class Crosshair : public PNode, public Element2D, public EventListener {
     16//! An Aim for zooming in on Targets.
     17class Aim : public PNode, public Element2D {
    2418
    2519 public:
    26   Crosshair(const TiXmlElement* root = NULL);
    27   virtual ~Crosshair();
     20  Aim(const TiXmlElement* root = NULL);
     21  virtual ~Aim();
    2822
    2923  void init();
     
    3529  void setRotationSpeed(float rotationSpeed) { this->rotationSpeed = rotationSpeed; };
    3630
    37   virtual void process(const Event &event);
    3831  virtual void tick(float dt);
    3932  virtual void draw() const;
     
    4437};
    4538
    46 #endif /* _CROSSHAIR_H */
     39#endif /* _AIM_H */
Note: See TracChangeset for help on using the changeset viewer.