Changeset 8734 for code/branches/ai2/src/modules/weapons
- Timestamp:
- Jul 6, 2011, 10:50:18 PM (13 years ago)
- Location:
- code/branches/ai2/src/modules/weapons/projectiles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai2/src/modules/weapons/projectiles/SimpleRocket.cc
r8706 r8734 100 100 if ( GameMode::isMaster() ) 101 101 { 102 103 104 102 this->setAngularVelocity(this->getOrientation() * this->localAngularVelocity_); 105 103 this->setVelocity( this->getOrientation()*WorldEntity::FRONT*this->getVelocity().length() ); -
code/branches/ai2/src/modules/weapons/projectiles/SimpleRocket.h
r8706 r8734 75 75 */ 76 76 inline void moveFrontBack(float value) 77 { this->moveFrontBack(Vector2(value, 0)); }77 { this->moveFrontBack(Vector2(value, 0)); } 78 78 /** 79 79 @brief Moves the SimpleRocket in the Right/Left-direction by the specifed amount. … … 81 81 */ 82 82 inline void moveRightLeft(float value) 83 { this->moveRightLeft(Vector2(value, 0)); }83 { this->moveRightLeft(Vector2(value, 0)); } 84 84 /** 85 85 @brief Moves the SimpleRocket in the Up/Down-direction by the specifed amount. … … 87 87 */ 88 88 inline void moveUpDown(float value) 89 { this->moveUpDown(Vector2(value, 0)); }89 { this->moveUpDown(Vector2(value, 0)); } 90 90 91 91 /** … … 94 94 */ 95 95 inline void rotateYaw(float value) 96 { this->rotateYaw(Vector2(value, 0)); }96 { this->rotateYaw(Vector2(value, 0)); } 97 97 /** 98 98 @brief Rotates the SimpleRocket around the x-axis by the specifed amount. … … 100 100 */ 101 101 inline void rotatePitch(float value) 102 { 103 this->rotatePitch(Vector2(value, 0)); } 102 { this->rotatePitch(Vector2(value, 0)); } 104 103 /** 105 104 @brief Rotates the SimpleRocket around the z-axis by the specifed amount. … … 107 106 */ 108 107 inline void rotateRoll(float value) 109 { 110 this->rotateRoll(Vector2(value, 0)); } 108 { this->rotateRoll(Vector2(value, 0)); } 111 109 112 110 void setOwner(Pawn* owner); … … 115 113 116 114 inline bool hasFuel() const 117 { return this->fuel_; }115 { return this->fuel_; } 118 116 119 117
Note: See TracChangeset
for help on using the changeset viewer.