- Timestamp:
- Oct 30, 2017, 4:04:29 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Asteroid_HS17/src/modules/asteroids/AsteroidsStone.h
r11506 r11516 32 32 */ 33 33 34 #ifndef _ InvaderEnemy_H__35 #define _ InvaderEnemy_H__34 #ifndef _AsteroidsStone_H__ 35 #define _AsteroidsStone_H__ 36 36 37 #include " invader/InvaderPrereqs.h"37 #include "asteroids/AsteroidsPrereqs.h" 38 38 39 #include "worldentities/ pawns/Pawn.h"39 #include "worldentities/MovableEntity.h" 40 40 41 41 namespace orxonox 42 42 { 43 class _ InvaderExport InvaderEnemy : public Pawn43 class _AsteroidsExport AsteroidsStone : public MovableEntity 44 44 { 45 45 public: 46 InvaderEnemy(Context* context); 46 AsteroidsStone(Context* context); 47 virtual void tick(float dt) override; 47 48 48 virtual void tick(float dt) override; 49 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) override; 50 virtual void damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs) override; 51 virtual void setInvaderPlayer(InvaderShip* player){this->player = player;} 52 49 float r; 53 50 int level; 54 51 protected: 55 Invader* getGame(); 56 WeakPtr<Invader> game; 57 WeakPtr<InvaderShip> player; 58 Camera* camera; 59 bool isFireing; 60 float speed, damping; 61 float lastTimeFront, lastTimeLeft; 62 float lifetime; 63 struct Velocity 64 { 65 float x; 66 float y; 67 } velocity, desiredVelocity; 52 float fieldWidth_; 53 float fieldHeight_; 54 Vector2 velocity; 55 float maxspeed; 56 57 68 58 69 59 };
Note: See TracChangeset
for help on using the changeset viewer.