-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGlobal.cpp
71 lines (57 loc) · 1.11 KB
/
Global.cpp
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#include "Global.h"
//Private functions
void Global::initVariables()
{
this->videoMode = sf::VideoMode(800*1.0, 480*1.0);
this->boundaries = sf::VideoMode(800*1.0, 480*1.0);
this->cameraOfst = sf::Vector2f(0.f, 0.f);
}
//Constructors / Destructors
Global::Global()
{
this->initVariables();
}
Global::~Global()
{
}
//Accessors
sf::VideoMode Global::getScreenSize()
{
return this->videoMode;
}
void Global::setScreenSize(sf::VideoMode videoMode)
{
this->videoMode = videoMode;
}
sf::VideoMode Global::getBoundaries()
{
return this->boundaries;
}
void Global::setBoundaries(sf::VideoMode boundaries)
{
this->boundaries = boundaries;
}
sf::Vector2f Global::getMousePos()
{
return this->mousePosView;
}
void Global::setMousePos(sf::Vector2f mousePosView)
{
this->mousePosView = mousePosView;
}
sf::Vector2f Global::getCameraOfst()
{
return this->cameraOfst;
}
void Global::setCameraOfst(sf::Vector2f cameraOfst)
{
this->cameraOfst = cameraOfst;
}
sf::Event Global::getEvent()
{
return this->event;
}
void Global::setEvent(sf::Event event)
{
this->event = event;
}