2010-04-05 23:38:59 +02:00
|
|
|
#ifndef _ROCKETENTITY_H
|
|
|
|
#define _ROCKETENTITY_H
|
|
|
|
|
|
|
|
#include "EntityBase.h"
|
|
|
|
#include "AsteroidsEnums.h"
|
|
|
|
|
|
|
|
#include "Sprite.h"
|
|
|
|
|
|
|
|
namespace asteroids {
|
|
|
|
|
|
|
|
struct RocketEntityPhysicState : public Engine::EntityPhysicState {
|
|
|
|
RocketEntityPhysicState () {
|
|
|
|
mBaseType = Engine::EntityBaseTypeParticle;
|
|
|
|
mType = GameEntityTypeRocket;
|
|
|
|
}
|
|
|
|
virtual ~RocketEntityPhysicState() {};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct RocketEntity: public Engine::EntityBase {
|
|
|
|
RocketEntity () {
|
|
|
|
mBaseType = Engine::EntityBaseTypeParticle;
|
|
|
|
mType = GameEntityTypeRocket;
|
|
|
|
|
|
|
|
mSecToLive = 3.;
|
|
|
|
}
|
|
|
|
virtual ~RocketEntity() {};
|
|
|
|
|
|
|
|
virtual void Update (float delta_sec);
|
2010-12-01 10:18:45 +01:00
|
|
|
virtual bool CollisionEvent (Engine::EntityBase *entity, vector3d point, vector3d normal) {
|
2010-04-05 23:38:59 +02:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
float mSecToLive;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // _ROCKETENTITY_H
|