Changeset 7039 for code/branches/presentation3/src/modules/weapons
- Timestamp:
- May 31, 2010, 9:33:09 AM (15 years ago)
- Location:
- code/branches/presentation3/src/modules/weapons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/modules/weapons/RocketController.h
r7021 r7039 49 49 public: 50 50 RocketController(BaseObject* creator); 51 51 virtual ~RocketController(); 52 52 53 53 virtual void tick(float dt); 54 54 SimpleRocket* getRocket() const 55 55 { return this->rocket_; }; 56 56 void setTarget(WorldEntity* target); 57 57 protected: 58 59 60 58 void moveToPosition(const Vector3& target); 59 void setTargetPosition(); 60 void moveToTargetPosition(); 61 61 62 62 private: 63 64 65 66 67 63 SimpleRocket* rocket_; //!<The Rocket it controlls 64 Vector3 targetPosition_; 65 WeakPtr<PlayerInfo> player_; 66 67 WeakPtr<WorldEntity> target_; 68 68 69 69 -
code/branches/presentation3/src/modules/weapons/projectiles/SimpleRocket.h
r7025 r7039 51 51 SimpleRocket(BaseObject* creator); 52 52 virtual ~SimpleRocket(); 53 53 virtual void tick(float dt); 54 54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a SimpleRocket through XML. 55 55 … … 66 66 virtual void rotatePitch(const Vector2& value); 67 67 virtual void rotateRoll(const Vector2& value); 68 68 void setDestroy(); 69 69 70 70 /** … … 99 99 inline void rotatePitch(float value) 100 100 { 101 101 this->rotatePitch(Vector2(value, 0)); } 102 102 /** 103 103 @brief Rotates the SimpleRocket around the z-axis by the specifed amount. … … 106 106 inline void rotateRoll(float value) 107 107 { 108 108 this->rotateRoll(Vector2(value, 0)); } 109 109 110 110 void setOwner(Pawn* owner);
Note: See TracChangeset
for help on using the changeset viewer.