Changeset 9516 in orxonox.OLD for branches/proxy/src/world_entities/weapons/aim.h
- Timestamp:
- Jul 27, 2006, 6:45:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/world_entities/weapons/aim.h
r9513 r9516 11 11 #include "object_manager.h" 12 12 13 #include "material.h" 14 13 15 // FORWARD DECLARATION 14 16 class Model; 15 17 class Text; 16 class Material;17 18 class TiXmlElement; 18 19 template<class T> class tAnimation; … … 25 26 * Also the Aim is a Element2D, as it draws a cross onto the Target. 26 27 */ 27 class Aim : public PNode, public Element2D { 28 class Aim : public PNode, public Element2D 29 { 28 30 29 31 public: 30 32 Aim(PNode* source, const TiXmlElement* root = NULL); 31 33 virtual ~Aim(); 32 34 33 void init();34 35 virtual void loadParams(const TiXmlElement* root); 35 36 … … 43 44 void setRange(float range) {this->range = range;}; 44 45 void setAngle(float angle) {this->angle = angle;}; 45 void setGroup(OM_LIST group) {this->group = group;}; 46 void setTargetGroup(OM_LIST group) { this->targetGroup = group; }; 47 void setTargetGroupS(const std::string& grounName); 46 48 47 49 void setSize(float size); … … 53 55 virtual void draw() const; 54 56 55 private: 56 Material* material; //!< a material for the Aim. 57 float rotationSpeed; //!< Speed of the Rotation. 58 tAnimation<Aim>* anim; 57 private: 58 void init(); 59 59 60 float range; //!<61 float angle; //!<62 Vector diffVec;63 OM_LIST group;64 60 65 PNode* source; //!< Where this Shot has come from. 61 private: 62 Material material; //!< a material for the Aim. 63 float rotationSpeed; //!< Speed of the Rotation. 64 tAnimation<Aim>* anim; 66 65 67 Text* text; //!< A Text to display onto this Node. (distance to Target) 66 float range; //!< 67 float angle; //!< 68 Vector diffVec; 69 OM_LIST targetGroup; 70 71 PNode* source; //!< Where this Shot has come from. 72 73 // Text text; //!< A Text to display onto this Node. (distance to Target) 68 74 }; 69 75
Note: See TracChangeset
for help on using the changeset viewer.