ungroup/ungroup_game

View on GitHub
src/client/systems/InputController.hpp

Summary

Maintainability
Test Coverage
#ifndef InputController_hpp
#define InputController_hpp

#include "../../common/util/InputDef.hpp"
#include <SFML/Graphics.hpp>

class InputController {
  public:
    explicit InputController(InputDef::InputKeys keys);
    ~InputController(){};
    InputController(const InputController& temp_obj) = delete;
    InputController& operator=(const InputController& temp_obj) = delete;

    std::pair<InputDef::ReliableInput, InputDef::UnreliableInput>
    collectInputs(sf::RenderWindow& window);
    InputDef::PlayerInputs getPlayerInputs(uint32_t player_id);
    InputDef::PlayerInputs getPlayerInputs(uint32_t player_id, InputDef::ReliableInput ri,
                                           InputDef::UnreliableInput ui);

  private:
    InputDef::InputKeys m_inputKeys;

    InputDef::ReliableInput m_reliableInput;
    InputDef::UnreliableInput m_unreliableInput;
};

#endif /* InputController_hpp */