Changeset 4779 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/crosshair.h
- Timestamp:
- Jul 2, 2005, 10:03:59 PM (19 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/crosshair.h
r4774 r4779 1 /*! 2 \file proto_class.h1 /*! 2 \file crosshair.h 3 3 \brief Definition of ... 4 4 5 5 */ 6 6 7 #ifndef _ PROTO_CLASS_H8 #define _ PROTO_CLASS_H7 #ifndef _CROSSHAIR_H 8 #define _CROSSHAIR_H 9 9 10 #include "base_object.h" 10 #include "event_listener.h" 11 12 #include "vector.h" 11 13 12 14 // FORWARD DEFINITION 13 15 14 16 15 16 //! A class for ... 17 class ProtoClass : public BaseObject { 17 //! A class that enables the 18 class Crosshair : public EventListener { 18 19 19 20 public: 20 ProtoClass();21 virtual ~ ProtoClass();21 Crosshair(); 22 virtual ~Crosshair(); 22 23 23 24 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 24 33 private: 34 Vector position; //!< The current position of the Crosshair 25 35 26 36 }; 27 37 28 #endif /* _ PROTO_CLASS_H */38 #endif /* _CROSSHAIR_H */
Note: See TracChangeset
for help on using the changeset viewer.