2016-04-09 13:53:12 +00:00
|
|
|
#include "state.hpp"
|
2016-04-09 02:36:30 +00:00
|
|
|
#include "manager.hpp"
|
2016-03-28 18:02:23 +00:00
|
|
|
|
2016-04-09 13:53:12 +00:00
|
|
|
State::State(Manager& manager) : manager(manager) {}
|
|
|
|
State::~State() {}
|
2016-04-09 00:32:11 +00:00
|
|
|
|
2016-04-09 13:53:12 +00:00
|
|
|
Manager& State::getManager() {
|
2016-04-09 02:36:30 +00:00
|
|
|
return manager;
|
|
|
|
}
|
|
|
|
|
2016-04-09 23:29:42 +00:00
|
|
|
const Manager& State::getManager() const {
|
|
|
|
return manager;
|
|
|
|
}
|
|
|
|
|
2016-04-09 13:53:12 +00:00
|
|
|
ResourceManager& State::getResourceManager() {
|
2016-04-09 02:36:30 +00:00
|
|
|
return manager.getResourceManager();
|
|
|
|
}
|
|
|
|
|
2016-04-09 23:29:42 +00:00
|
|
|
const ResourceManager& State::getResourceManager() const {
|
|
|
|
return manager.getResourceManager();
|
|
|
|
}
|
|
|
|
|
2016-04-09 13:53:12 +00:00
|
|
|
sf::RenderWindow& State::getWindow() {
|
2016-04-09 02:36:30 +00:00
|
|
|
return manager.getWindow();
|
|
|
|
}
|
|
|
|
|
2016-04-09 23:29:42 +00:00
|
|
|
const sf::RenderWindow& State::getWindow() const {
|
|
|
|
return manager.getWindow();
|
2016-04-09 02:36:30 +00:00
|
|
|
}
|