<commit_before>//
//  tile.hpp
//  tile
//
//  Created by <NAME> on 9/5/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

#ifndef tile_h
#define tile_h

#include <stdio.h>
#include <iostream>
#include <string>
#include <random>
#include <vector>

using namespace std;

class Tile {
private:
    string title;
    
    // Description that will be printed out when tile is entered by Hero.
    string description;
    
    // Possible enemies stored as integers in vector.
    // Choose random integer from vector to spawn possible random enemy.
    vector<int> possibleEnemies;
    
    // Possible static loot default as false
    bool staticLoot;
    
    // Vector containing all possible loot
    vector<int> possibleLoot;
    
    // Tile type (generic or quest) with default as false = generic
    bool tileType;
    
    // Possible movement directions {1=forward, 2=back, 3=left, 4=right}
    vector<int> possibleDirections;
    
    // Climate description will be generated randomly based on library of strings
    vector<int> climateDesc;
    
public:
    // Tile class constructors
    Tile();
    Tile(string customTitle);
    Tile(string customTitle, string customDescription);
    Tile(string customTitle, string customDescription, vector<int> customEnemies);
    Tile(string customTitle, string customDescription, vector<int> customEnemies, bool loot, vector<int> customLoot);
    Tile(string customTitle, string customDescription, vector<int> customEnemies, bool loot, vector<int> customLoot, bool customTileType);
    Tile(string customTitle, string customDescription, vector<int> customEnemies, bool loot, vector<int> customLoot, bool customTileType, vector<int> customDirections);
    Tile(string customTitle, string customDescription, vector<int> customEnemies, bool loot, vector<int> customLoot, bool customTileType, vector<int> customDirections, vector<int> customClimate);
    
    string getTitle();
    void setTitle(string customTitle);
    void generateTitle();
    
    string getDescription();
    void setDescription(string customDescription);
    void generateDescription();
    
    vector<int> getPossibleEnemies();
    void setPossibleEnemies(vector<int> customEnemies);
    void generatePossibleEnemies();
    
    vector<int> getLoot();
    void setLoot(vector<int> customLoot);
    void generateLoot();
    
    bool getTileType();<commit_msg>Added X & Y coordinates to public tile.<commit_after>//
//  tile.hpp
//  tile
//
//  Created by <NAME> on 9/5/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

#ifndef tile_h
#define tile_h

#include <stdio.h>
#include <iostream>
#include <string>
#include <random>
#include <vector>

using namespace std;

class Tile {
private:
    string title;
    
    // Description that will be printed out when tile is entered by Hero.
    string description;
    
    // Possible enemies stored as integers in vector.
    // Choose random integer from vector to spawn possible random enemy.
    vector<int> possibleEnemies;
    
    // Possible static loot default as false
    bool staticLoot;
    
    // Vector containing all possible loot
    vector<int> possibleLoot;
    
    // Tile type (generic or quest) with default as false = generic
    bool tileType;
    
    // Possible movement directions {1=forward, 2=back, 3=left, 4=right}
    vector<int> possibleDirections;
    
    // Climate description will be generated randomly based on library of strings
    vector<int> climateDesc;
    
public:
    int x;
    int y;
    // X & Y coordinates for the 2D Array
    
    // Tile class constructors
    Tile();
    Tile(string customTitle);
    Tile(string customTitle, string customDescription);
    Tile(string customTitle, string customDescription, vector<int> customEnemies);
    Tile(string customTitle, string customDescription, vector<int> customEnemies, bool loot, vector<int> customLoot);
    Tile(string customTitle, string customDescription, vector<int> customEnemies, bool loot, vector<int> customLoot, bool customTileType);
    Tile(string customTitle, string customDescription, vector<int> customEnemies, bool loot, vector<int> customLoot, bool customTileType, vector<int> customDirections);
    Tile(string customTitle, string customDescription, vector<int> customEnemies, bool loot, vector<int> customLoot, bool customTileType, vector<int> customDirections, vector<int> customClimate);
    
    string getTitle();
    void setTitle(string customTitle);
    void generateTitle();
    
    string getDescription();
    void setDescription(string customDescription);
    void generateDescription();
    
    vector<int> getPossibleEnemies();
    void setPossibleEnemies(vector<int> customEnemies);
    void generatePossibleEnemies();
    
    vector<int> getLoot();
    void setLoot(vector<int> customLoot);
    void generateLoot();
    
    bool getTileType();
{'fraction_non_alphanumeric': 0.09139453686588622, 'fraction_numerical': 0.0051345245430273155, 'mean_word_length': 3.6692233940556087, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '6727311', 'n_tokens_mistral': 1427, 'n_tokens_neox': 1355, 'n_words': 452}