<commit_before>#include "Tile.hpp"


Tile::Tile(const Board& board){
	board_ = board*;
	bot_= nullptr;
}


Tile::Tile(const TileInterface& toCopy){
	board_ = toCopy.getBoard();
	bot_ = toCopy.getBot();
}



const Tile::Board* getBoard() const{
	return const *board_;
}

Board* Tile::getBoard(){
	return *board_;
}


const Bot* Tile::getBot() const{
	return const *bot_;
}
	
	
Bot* Tile::getBot(){
	return *bot_;
}


bool Tile::isFree() const{
	return (bot_ == nullptr);
}
	
void onEnter(Bot& bot){
	
}

void onExit(Bot& bot) override;

Tile* copy() override;<commit_msg>Ecriture des fonctions de Tile (reste onEnter et onExit) #2<commit_after>#include "Tile.hpp"


Tile::Tile(const Board& board){
	board_ = board;
	bot_= nullptr;
}


Tile::Tile(const TileInterface& toCopy){
	board_ = toCopy.getBoard();
	bot_ = toCopy.getBot();
}



const Tile::Board* getBoard() const{
	return const board_;
}

Board* Tile::getBoard(){
	return board_;
}


const Bot* Tile::getBot() const{
	return const bot_;
}
	
	
Bot* Tile::getBot(){
	return bot_;
}


bool Tile::isFree() const{
	return (bot_ == nullptr);
}
	
void Tile::onEnter(Bot& bot){
	
}

void Tile::onExit(Bot& bot) override{
}

Tile* Tile::copy(){
	return Tile(*this);
}
{'fraction_non_alphanumeric': 0.1662551440329218, 'fraction_numerical': 0.0008230452674897119, 'mean_word_length': 4.735849056603773, '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': '4499271', 'n_tokens_mistral': 487, 'n_tokens_neox': 465, 'n_words': 117}