-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDefaultEditorMode.h
More file actions
50 lines (36 loc) · 915 Bytes
/
DefaultEditorMode.h
File metadata and controls
50 lines (36 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#pragma once
#include "EditorMode.h"
class State;
class StateData;
class EditorMode;
class EditorStateData;
class TileMap;
class Tile;
class DefaultEditorMode :
public EditorMode
{
private:
//Variables:
sf::Text cursorText;
sf::RectangleShape sideBar;
sf::RectangleShape selectorRect;
gui::TextureSelector* textureSelector;
sf::IntRect textureRect;
bool collision;
int type;
int layer;
bool tileAddLock;
//private: Functions:
void initVariables();
void initGui();
public:
//Constructors and Destructor:
DefaultEditorMode(StateData* state_data, TileMap* tile_map, EditorStateData* editor_state_data);
virtual ~DefaultEditorMode();
//Functions:
void updateInput(const float& dt);
void updateGui(const float& dt);
void update(const float& dt);
void renderGui(sf::RenderTarget& target);
void render(sf::RenderTarget& target);
};