1 #ifndef RADIX_PLAYERTASK_HPP
2 #define RADIX_PLAYERTASK_HPP
15 using Task = std::function<void(BaseGame *game, TDelta dtime)>;
26 static_assert(std::is_base_of<PlayerTask, T>::value,
"T must be a PlayerTask");
28 blackList.push_back(result);
31 virtual std::string
getName() = 0;
virtual ~PlayerTask()
Definition: PlayerTask.hpp:18
Definition: GameController.hpp:7
PlayerTask()
Definition: PlayerTask.hpp:17
Definition: PlayerTask.hpp:40
std::list< PlayerTask * > blackList
Definition: PlayerTask.hpp:22
Task task
Definition: PlayerTask.hpp:21
std::string getName()
Definition: PlayerTask.cpp:16
Definition: PlayerTask.hpp:13
PlayerMoveTask()
Definition: PlayerTask.cpp:20
std::function< void(BaseGame *game, TDelta dtime)> Task
Definition: PlayerTask.hpp:15
void addBlacklist()
Definition: PlayerTask.hpp:25
virtual std::string getName()=0
Definition: PlayerTask.hpp:34
int id
Definition: PlayerTask.hpp:18
PlayerTriggerTask()
Definition: PlayerTask.cpp:9
std::string getName()
Definition: PlayerTask.cpp:86