<commit_before>#ifndef __MOVECONTROLLER_H__
#define __MOVECONTROLLER_H__

#include "IMapEventListener.h"
#include "cocos2d.h"
#include "IGameEventListener.h"

namespace tsg {
namespace move {

using cocos2d::Vec2;
using cocos2d::TMXTiledMap;
using cocos2d::Sprite;
using cocos2d::TMXObjectGroup;
using cocos2d::Size;

using std::string;
/*
 Holds objects positioning and guarantees that
 their position will be valid to each other.

 Provides API to control objects position.
 */
class MoveController:
    public map::IMapEventListener,
    public game::IGameEventListener {
 protected:
  TMXTiledMap *map;
  Vec2 playerSpawn;
  Vec2 playerPosition;
  virtual Size calcTileSize() const;
  virtual TMXObjectGroup *findSpawnObject(const string &) const;
  virtual Vec2 findPlayerSpawn() const;
  void respawnPlayer();
  virtual void initSprite(Vec2);
  virtual Sprite *findWaterTile(const Vec2) const;
  virtual Vec2 findObjectWorldPosition(const string &, const string &) const;
  virtual Vec2 findObjectGridPosition(const string &, const string &) const;

  void onMapLoad(TMXTiledMap *) override;
  void onInit() override;
  void onViewCoordinatesChange(Vec2) override;
  void onNightTime();
  void onDayTime();
  void onGameHourPass();
 public:
};
}
}
#endif /* __MOVECONTROLLER_H__ */<commit_msg>- add 'override' to overridden methods<commit_after>#ifndef __MOVECONTROLLER_H__
#define __MOVECONTROLLER_H__

#include "IMapEventListener.h"
#include "cocos2d.h"
#include "IGameEventListener.h"

namespace tsg {
namespace move {

using cocos2d::Vec2;
using cocos2d::TMXTiledMap;
using cocos2d::Sprite;
using cocos2d::TMXObjectGroup;
using cocos2d::Size;

using std::string;
/*
 Holds objects positioning and guarantees that
 their position will be valid to each other.

 Provides API to control objects position.
 */
class MoveController:
    public map::IMapEventListener,
    public game::IGameEventListener {
 protected:
  TMXTiledMap *map;
  Vec2 playerSpawn;
  Vec2 playerPosition;
  virtual Size calcTileSize() const;
  virtual TMXObjectGroup *findSpawnObject(const string &) const;
  virtual Vec2 findPlayerSpawn() const;
  void respawnPlayer();
  virtual void initSprite(Vec2);
  virtual Sprite *findWaterTile(const Vec2) const;
  virtual Vec2 findObjectWorldPosition(const string &, const string &) const;
  virtual Vec2 findObjectGridPosition(const string &, const string &) const;

  void onMapLoad(TMXTiledMap *) override;
  void onInit() override;
  void onViewCoordinatesChange(Vec2) override;
  void onNightTime() override;
  void onDayTime() override;
  void onGameHourPass() override;
 public:
};
}
}
#endif /* __MOVECONTROLLER_H__ */
{'fraction_non_alphanumeric': 0.08943396226415094, 'fraction_numerical': 0.011320754716981131, 'mean_word_length': 5.728426395939087, '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': '1755433', 'n_tokens_mistral': 850, 'n_tokens_neox': 855, 'n_words': 236}