Changeset 4849 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons
- Timestamp:
- Jul 13, 2005, 7:03:05 PM (19 years ago)
- Location:
- orxonox/trunk/src/world_entities/weapons
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/crosshair.cc
r4838 r4849 180 180 * draws the crosshair 181 181 */ 182 void Crosshair::draw() 182 void Crosshair::draw() const 183 183 { 184 184 GraphicsEngine::storeMatrices(); -
orxonox/trunk/src/world_entities/weapons/crosshair.h
r4836 r4849 8 8 #define _CROSSHAIR_H 9 9 10 #include "p_node.h" 11 #include "element_2d.h" 10 12 #include "event_listener.h" 11 #include "p_node.h" 13 12 14 #include "vector.h" 15 13 16 14 17 // FORWARD DEFINITION … … 18 21 19 22 //! A class that enables the 20 class Crosshair : public PNode, public E ventListener {23 class Crosshair : public PNode, public Element2D, public EventListener { 21 24 22 25 public: … … 33 36 34 37 virtual void process(const Event &event); 35 v oid tick(float dt);36 v oid draw();38 virtual void tick(float dt); 39 virtual void draw() const; 37 40 38 41 private: -
orxonox/trunk/src/world_entities/weapons/weapon_manager.cc
r4837 r4849 243 243 } 244 244 245 crosshair->tick(dt);246 245 crosshair->setRotationSpeed(5); 247 246 } … … 260 259 w->draw(); 261 260 } 262 crosshair->draw();263 261 } 264 262
Note: See TracChangeset
for help on using the changeset viewer.