<commit_before>#pragma once

#include "IInputHandler.h"
#include "Actions.h"


namespace Doh3d
{

  class IControlable;
  using ControllerId = int;


  class Controller : public IInputHandler
  {
  public:

    Controller(ControllerId i_id);

    void bindObject(IControlable* i_object);
    void unbindObject();

    int getId() const { return d_id; }

    void clearBindings();
    void bindKey(Key i_key, Action i_action);
<commit_msg>(~) Added getter for the controlled object<commit_after>#pragma once

#include "IInputHandler.h"
#include "Actions.h"


namespace Doh3d
{

  class IControlable;
  using ControllerId = int;


  class Controller : public IInputHandler
  {
  public:

    Controller(ControllerId i_id);

    void bindObject(IControlable* i_object);
    void unbindObject();

    int getId() const { return d_id; }

    void clearBindings();
    void bindKey(Key i_key, Action i_action);

    IControlable* getBindedObject() { return d_bindedObject; }

{'fraction_non_alphanumeric': 0.09391124871001032, 'fraction_numerical': 0.0020639834881320948, 'mean_word_length': 3.9489795918367347, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1829027', 'n_tokens_mistral': 325, 'n_tokens_neox': 305, 'n_words': 84}