From 469a84c10ba60fba4a513c1b1a0eea600cd7b22f Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Wed, 10 May 2017 18:44:51 +0500 Subject: 2017-05-10 --- Display.hpp | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 Display.hpp (limited to 'Display.hpp') diff --git a/Display.hpp b/Display.hpp deleted file mode 100644 index 3d54482..0000000 --- a/Display.hpp +++ /dev/null @@ -1,45 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include "World.hpp" - -class Display { - sf::RenderWindow *window; - std::map> sectionTextures; - //std::map> sectionTextures; - World *world; - bool isGameStarted = false; - std::condition_variable &gameStartWaiter; - std::mutex gameStartMutex; - - //utility methods - void pollEvents(); - - void renderWorld(); - - void Update(); - - sf::Image &GetSectionTexture(PositionI pos); - - //gameState vars - sf::Vector2f mousePos; - int renderLayer = 70; - //int currentId = 0; - bool isClicked = false; - int coeff = 10; - double frameTime = 0; -public: - Display(int w, int h, std::string title, World *world, std::condition_variable &gameStartWaiter); - - ~Display(); - - bool IsClosed(); - - void SetPlayerPos(float x, float z); - - void MainLoop(); -}; - -- cgit v1.2.3