2010-04-05 23:38:59 +02:00
|
|
|
#ifndef _ASTEROIDENTITY_H
|
|
|
|
#define _ASTEROIDENTITY_H
|
|
|
|
|
|
|
|
#include "EntityBase.h"
|
|
|
|
#include "AsteroidsEnums.h"
|
|
|
|
#include "Sprite.h"
|
|
|
|
|
|
|
|
namespace asteroids {
|
|
|
|
|
|
|
|
struct AsteroidEntityPhysicState : public Engine::EntityPhysicState {
|
|
|
|
AsteroidEntityPhysicState () {
|
|
|
|
mBaseType = Engine::EntityBaseTypeBlock;
|
|
|
|
mType = GameEntityTypeAsteroid;
|
|
|
|
}
|
|
|
|
virtual ~AsteroidEntityPhysicState() {};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct AsteroidEntity: public Engine::EntityBase {
|
|
|
|
AsteroidEntity () {
|
|
|
|
mBaseType = Engine::EntityBaseTypeBlock;
|
|
|
|
mType = GameEntityTypeAsteroid;
|
|
|
|
|
|
|
|
mSubAsteroidsCount = 4;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
|
|
|
int mSubAsteroidsCount;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // _ASTEROIDENTITY_H
|