skizzle/src/state.cpp

22 lines
433 B
C++
Raw Normal View History

#include "state.hpp"
#include "manager.hpp"
2016-03-28 18:02:23 +00:00
State::State(Manager& manager) : manager(manager) {}
State::~State() {}
2016-04-09 00:32:11 +00:00
Manager& State::getManager() {
return manager;
}
ResourceManager& State::getResourceManager() {
return manager.getResourceManager();
}
sf::RenderWindow& State::getWindow() {
return manager.getWindow();
}
bool State::isKeyPressed(sf::Keyboard::Key key) const {
return manager.isKeyPressed(key);
}