27 lines
487 B
C++
27 lines
487 B
C++
#pragma once
|
|
#include "Data/Entity.hpp"
|
|
|
|
|
|
namespace TestGame {
|
|
class GameEntity : public Entity
|
|
{
|
|
public:
|
|
|
|
GameEntity(const Vector2& spawn_pos) {
|
|
pos = spawn_pos;
|
|
next_pos = spawn_pos;
|
|
}
|
|
|
|
virtual void Update(float elapsed) = 0;
|
|
|
|
virtual void Draw() = 0;
|
|
|
|
Vector2 pos;
|
|
Vector2 next_pos;
|
|
Vector2 bbox;
|
|
Vector2 velocity;
|
|
bool noclip = false;
|
|
bool on_ground = true;
|
|
};
|
|
}
|