summaryrefslogtreecommitdiff
path: root/game/worldobject.h
blob: db695329cfd9b08b99919eb847872070ea80415d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef WORLDOBJECT_H
#define WORLDOBJECT_H

#include <chrono>
#include <special_members.hpp>

class WorldObject {
public:
	using TickDuration = std::chrono::duration<float, std::chrono::seconds::period>;

	WorldObject() = default;
	virtual ~WorldObject() = default;
	NO_COPY(WorldObject);
	NO_MOVE(WorldObject);

	virtual void tick(TickDuration elapsed) = 0;
};

#endif