- Timestamp:
- May 24, 2012, 10:00:06 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/newlevel2012/src/modules/towerdefense/Tower.cc
r9213 r9236 22 22 Constructor. Registers and initializes the object. 23 23 */ 24 Tower::Tower(BaseObject* creator) : SpaceShip(creator)24 Tower::Tower(BaseObject* creator) : Pawn(creator) 25 25 { 26 26 RegisterObject(Tower); … … 36 36 */ 37 37 } 38 39 void Tower::setOrientation(const Quaternion& orientation) 40 { 41 static int ori; 42 orxout() << "orientation " << ++ori << endl; 43 } 44 45 void Tower::rotateYaw(const Vector2& value) 46 { 47 static int yaw; 48 orxout() << "rotateYaw " << ++yaw << endl; 49 } 50 51 void Tower::rotatePitch(const Vector2& value) 52 { 53 static int pitch; 54 orxout() << "rotatePitch " << ++pitch << endl; 55 } 56 57 void Tower::rotateRoll(const Vector2& value) 58 { 59 static int roll; 60 orxout() << "rotateRoll" << ++roll << endl; 61 } 62 38 63 // This function is called whenever a player presses the up or the down key. 39 64 // You have to implement what happens when the up or the down key is pressed. … … 55 80 A vector whose first component is the angle by which to rotate. 56 81 */ 82 /* 57 83 void Tower::moveFrontBack(const Vector2& value) 58 84 { 59 85 //orxout() << "frontBack.x: " << value.x << endl; 60 86 } 87 */ 61 88 62 89 /** … … 66 93 A vector whose first component is the direction in which we want to steer the stone. 67 94 */ 95 /* 68 96 void Tower::moveRightLeft(const Vector2& value) 69 97 { 70 98 //orxout() << "rightLeft.x: " << value.x << endl; 71 /*99 72 100 if(!this->delay_) 73 101 { … … 80 108 this->delay_ = true; 81 109 this->delayTimer_.startTimer(); 82 } 83 */ 110 } 84 111 } 112 */ 85 113 }
Note: See TracChangeset
for help on using the changeset viewer.