-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathActionSystem.hpp
More file actions
27 lines (23 loc) · 811 Bytes
/
ActionSystem.hpp
File metadata and controls
27 lines (23 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef SWRPG_ACTIONSYSTEM_HPP
#define SWRPG_ACTIONSYSTEM_HPP
#include "Imports.hpp"
#include "Components.hpp"
#include "Config.hpp"
class ActionSystem : public entityx::System<ActionSystem>,public entityx::Receiver<ActionSystem>
{
public:
ActionSystem(tmx::MapLoader& pLoader);
void configure(entityx::EventManager &event_manager);
void receive(const Collision &collision);
void receive(const EndCollision &collision);
void update(entityx::EntityManager &es, entityx::EventManager &events, entityx::TimeDelta dt);
private:
tmx::MapLoader& mLoader;
bool mCollision;
tmx::MapObject* mObject;
chaiscript::ChaiScript mChai;
void say(const std::string& who, const std::string& something) const;
bool mActionPending;
entityx::EventManager* mEventManager;
};
#endif