Source

pyGAP / game / inc / input / command_manager.h

Full commit
#ifndef _INPUT_COMMAND_MANAGER_
#define _INPUT_COMMAND_MANAGER_


#include "platform/command_manager.h"


namespace input {
class Command;
class Input;


class CommandManager: public platform::CommandManager
{
public:
    CommandManager();
    ~CommandManager();

    void set_num_commands(int num_commands);
    void update_inputs();

    Command& operator [] (int index);
    Command& operator [] (int index) const;

private:
    int num_commands_;
    Command* commands_;
};


} // namespace input


#endif // _INPUT_COMMAND_MANAGER_