OpenAstra
 
Loading...
Searching...
No Matches
commandmanager.h
1#ifndef COMMANDMANAGER_H
2#define COMMANDMANAGER_H
3
4#include <stdint.h>
5
6#include <memory>
7
8#include "gameobject.h"
9
10class Command;
11
12class CommandManager
13{
14public:
15 CommandManager( std::shared_ptr<GameObject> owner );
16 virtual ~CommandManager();
17
18 bool queueCommand( std::shared_ptr<Command> command );
19
20 void tickCommands( double delta_time_s, double total_time_s );
21
22private:
23 std::shared_ptr<GameObject> _owner;
24
25};
26
27#endif // COMMANDMANAGER_H
The Command class.
Definition command.h:23