blob: 6c75b8a38d1e41ddc18e74579aa4154285c278e2 (
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::milliseconds;
WorldObject() = default;
virtual ~WorldObject() = default;
NO_COPY(WorldObject);
NO_MOVE(WorldObject);
virtual void tick(TickDuration elapsed) = 0;
};
#endif
|