<commit_before>#include "SceneManager.hpp"
#include "Tile.hpp"
#include "globals.hpp"
#include <iostream>

SceneManager::SceneManager(){
	colorToTilePositionMap[0x11941bff] = sf::Vector2i(0,0);; // grass
	colorToTilePositionMap[0x989898ff] = sf::Vector2i(0,3); // stone
	colorToTilePositionMap[0x9c6d27ff] = sf::Vector2i(0,1); // dirt
	colorToTilePositionMap[0x5f5f5fff] = sf::Vector2i(0,2); // wet stone
	colorToTilePositionMap[0x000000ff] = sf::Vector2i(2,9); // wall
	
	loadScene("levels/level000.png");
}


sf::Vector2i SceneManager::getRandomGrassPosition()
{
	float rnd = rand() / RAND_MAX;
	int grassCount = 4;
	if (rnd < 1./grassCount)
	{
		return sf::Vector2i(0,0);
	}
	if (rnd < 2./grassCount)
	{
		return sf::Vector2i(1,0);
	}
	if (rnd < 3./grassCount)
	{
		return sf::Vector2i(2,0);
	}

	return sf::Vector2i(3,0);
}

void SceneManager::showScene(std::string sceneName) {
	// load scene if not existent and set currentScene
}
<commit_msg>colorToTilePositionMap-Werte an level000.png angepasst<commit_after>#include "SceneManager.hpp"
#include "Tile.hpp"
#include "globals.hpp"
#include <iostream>

SceneManager::SceneManager(){
	colorToTilePositionMap[0x11941bff] = sf::Vector2i(0,0);; // grass
	colorToTilePositionMap[0x969896ff] = sf::Vector2i(0,3); // stone
	colorToTilePositionMap[0x9b6d27ff] = sf::Vector2i(0,1); // dirt
	colorToTilePositionMap[0x5f5f5fff] = sf::Vector2i(0,2); // wet stone
	colorToTilePositionMap[0x000100ff] = sf::Vector2i(2,9); // wall
	
	loadScene("levels/level000.png");
}


sf::Vector2i SceneManager::getRandomGrassPosition()
{
	float rnd = rand() / RAND_MAX;
	int grassCount = 4;
	if (rnd < 1./grassCount)
	{
		return sf::Vector2i(0,0);
	}
	if (rnd < 2./grassCount)
	{
		return sf::Vector2i(1,0);
	}
	if (rnd < 3./grassCount)
	{
		return sf::Vector2i(2,0);
	}

	return sf::Vector2i(3,0);
}

void SceneManager::showScene(std::string sceneName) {
	// load scene if not existent and set currentScene
}

{'fraction_non_alphanumeric': 0.1629706034038164, 'fraction_numerical': 0.06756059824651882, 'mean_word_length': 5.466666666666667, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 5, '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': '3584333', 'n_tokens_mistral': 853, 'n_tokens_neox': 788, 'n_words': 129}