chore: Initial commit
This commit is contained in:
24
src/sim/aircraft.hpp
Normal file
24
src/sim/aircraft.hpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include "../math.hpp"
|
||||
#include "world_object.hpp"
|
||||
|
||||
namespace dxd::sim
|
||||
{
|
||||
|
||||
class Aircraft : public WorldObject
|
||||
{
|
||||
private:
|
||||
vec2 _position;
|
||||
float _direction;
|
||||
float _speed;
|
||||
|
||||
public:
|
||||
Aircraft(vec2 position, float direction, float speed)
|
||||
: _position(position), _direction(direction), _speed(speed) {}
|
||||
|
||||
void tick(float timestep, vec2 bounds) override;
|
||||
void draw(Renderer *rend) override;
|
||||
};
|
||||
|
||||
} // namespace dxd::sim
|
||||
Reference in New Issue
Block a user