- Timestamp:
- Apr 27, 2017, 3:08:16 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/Orxo.h
r11392 r11405 44 44 class Orxo : public SpaceShip 45 45 { 46 47 46 public: 47 Orxo(Context* context); 48 48 49 49 virtual void tick(float dt) override; 50 50 51 51 52 52 // overwrite for 2d movement 53 54 53 virtual void moveFrontBack(const Vector2& value) override; 54 virtual void moveRightLeft(const Vector2& value) override; 55 55 56 56 // Starts or stops fireing 57 57 virtual void boost(bool bBoost) override; 58 58 59 59 //no rotation! 60 61 60 virtual void rotateYaw(const Vector2& value) override{}; 61 virtual void rotatePitch(const Vector2& value) override{}; 62 62 //return to main menu if game has ended. 63 63 virtual void rotateRoll(const Vector2& value) override; 64 64 65 65 virtual void updateLevel(); 66 66 67 67 virtual inline bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) override; 68 68 69 protected: 70 virtual void death() override; 71 private: 69 70 71 72 73 74 75 protected: 76 virtual void death() override; 77 private: 72 78 //SOB* getGame(); 73 79 //WeakPtr<SOB> game; 74 75 76 77 78 79 80 81 80 Camera* camera; 81 float speed, damping, posforeward; 82 float lastTimeFront, lastTimeLeft, lastTime; 83 struct Velocity 84 { 85 float x; 86 float y; 87 } velocity, desiredVelocity; 82 88 83 89 // WeakPtr<InvaderEnemy> lastEnemy;
Note: See TracChangeset
for help on using the changeset viewer.