34 lines
461 B
C++
34 lines
461 B
C++
#include "entity.h"
|
|
#include <num/num.h>
|
|
|
|
Entity::Entity( int16_t _x, int16_t _y, uint8_t _id )
|
|
{
|
|
x = libnum::num(_x);
|
|
y = libnum::num(_y);
|
|
ID = _id;
|
|
toberemoved = false;
|
|
hasTrajectory = false;
|
|
accumulatedTime = 0.0f;
|
|
}
|
|
|
|
|
|
Entity::~Entity( void )
|
|
{
|
|
if (hasTrajectory)
|
|
pathToFollow->DeleteRegistry();
|
|
}
|
|
|
|
void Entity::Update( float dt )
|
|
{
|
|
|
|
}
|
|
|
|
void Entity::Render( void )
|
|
{
|
|
|
|
}
|
|
|
|
bool Entity::Test_Impact( Bullet *projectile )
|
|
{
|
|
|
|
} |