Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 2, 2005, 10:03:59 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: created a crosshair class, that will in the future enable us to shoot at enemies

File:
1 copied

Legend:

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

    r4774 r4779  
    1 /*! 
    2     \file proto_class.h
     1/*!
     2    \file crosshair.h
    33    \brief Definition of ...
    44
    55*/
    66
    7 #ifndef _PROTO_CLASS_H
    8 #define _PROTO_CLASS_H
     7#ifndef _CROSSHAIR_H
     8#define _CROSSHAIR_H
    99
    10 #include "base_object.h"
     10#include "event_listener.h"
     11
     12#include "vector.h"
    1113
    1214// FORWARD DEFINITION
    1315
    1416
    15 
    16 //! A class for ...
    17 class ProtoClass : public BaseObject {
     17//! A class that enables the
     18class Crosshair : public EventListener {
    1819
    1920 public:
    20   ProtoClass();
    21   virtual ~ProtoClass();
     21  Crosshair();
     22  virtual ~Crosshair();
    2223
    2324
     25  virtual void process(const Event &event);
     26
     27  /** @returns the current 3D-position of the Crosshair */
     28  const Vector& getPosition() { return this->position; };
     29
     30  void tick(float dt);
     31  void draw();
     32
    2433 private:
     34   Vector           position;             //!< The current position of the Crosshair
    2535
    2636};
    2737
    28 #endif /* _PROTO_CLASS_H */
     38#endif /* _CROSSHAIR_H */
Note: See TracChangeset for help on using the changeset viewer.