<commit_before>/**
* @file background.hpp
* @brief Purpose: Contains the Background class declaration.
*
* MIT License
* Copyright (c) 2017 MindScape
*
* https://github.com/TecProg2017-2/mindscape/blob/master/LICENSE.md
*/
//TODO discover how overwrite static attribute

#ifndef BACKGROUND_H
#define BACKGROUND_H

#include "../engine/include/game_object.hpp"
#include "../engine/include/keyboard_event.hpp"
#include "../engine/include/image.hpp"
#include "globals.hpp"
#include <iostream>
#include <vector>
#include <string>
#include <unordered_map>

namespace mindscape {
    /**
    * @brief A Background class.
    *
    * A class responsible to ensure background handling.
    *
    */
    class Background : public engine::GameObject {
        private:
            int paralax = 0; /**< Integer. Defines the paralax value to create
                                 visual effect*/

        public:
            Background(
                std::string name, /**< String. Name of the background file*/
                std::pair<int, int> position, /**< Pair<int, int>. Position of 
                                                the background*/
                int priority /**< Priority of the background .*/
            )
            :engine::GameObject(
                name, 
                position, 
                priority,
                {
                {engine::KeyboardEvent::LEFT,"MOVE_LEFT"},
                {engine::KeyboardEvent::RIGHT,"MOVE_RIGHT"}
                }
            ){
            };

            ~Background(){};
            
            void on_event(GameEvent game_event);
            
            void set_paralax(int);
            
            int get_paralax();
    };
}

#endif<commit_msg>[GoRI] Applies GoRI in background hpp<commit_after>/**
* @file background.hpp
* @brief Purpose: Contains the Background class declaration.
*
* MIT License
* Copyright (c) 2017 MindScape
*
* https://github.com/TecProg2017-2/mindscape/blob/master/LICENSE.md
*/
//TODO discover how overwrite static attribute

#ifndef BACKGROUND_H
#define BACKGROUND_H

#include "../engine/include/game_object.hpp"
#include "../engine/include/keyboard_event.hpp"
#include "../engine/include/image.hpp"
#include "globals.hpp"
#include <iostream>
#include <vector>
#include <string>
#include <unordered_map>

namespace mindscape {
    /**
    * @brief A Background class.
    *
    * A class responsible to ensure background handling.
    *
    */
    class Background : public engine::GameObject {
        private:
            /* Animation effect */
            int paralax = 0; /**< Integer. Defines the paralax value to create
                                 visual effect*/

        public:

            /* Constructor and destructor */
            Background(
                std::string name, /**< String. Name of the background file*/
                std::pair<int, int> position, /**< Pair<int, int>. Position of
                                                the background*/
                int priority /**< Priority of the background .*/
            )
            :engine::GameObject(
                name,
                position,
                priority,
                {
                {engine::KeyboardEvent::LEFT,"MOVE_LEFT"},
                {engine::KeyboardEvent::RIGHT,"MOVE_RIGHT"}
                }
            ){
            };
            ~Background(){};

            /* Loop methods */
            void on_event(GameEvent game_event);

            /* Animation effect */
            void set_paralax(int);
            int get_paralax();
    };
}

#endif
{'fraction_non_alphanumeric': 0.11284046692607004, 'fraction_numerical': 0.005558643690939411, 'mean_word_length': 1.6878267363704258, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 15, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '317484', 'n_tokens_mistral': 975, 'n_tokens_neox': 901, 'n_words': 239}