Files
dxdesktop/src/sim/af_spawner.hpp

31 lines
468 B
C++

#pragma once
#include <vector>
#include "../math.hpp"
#include "world_object.hpp"
#include "airfield.hpp"
namespace dxd::sim
{
class AFSpawner : public WorldObject
{
private:
std::vector<Airfield*> _airfields;
int _cur_tick;
int _next_spawn;
public:
AFSpawner()
{
_airfields = std::vector<Airfield*>();
_cur_tick = _next_spawn = 0;
}
void tick(float timestep, World *world) override;
void draw(Renderer *rend) override {}
};
} // namespace dxd::sim