4 * Created on: Aug 5, 2012
8 #include "BattleState.h"
10 #include "PartyLayout.h"
12 using app::Application;
16 void BattleState::EnterState(Application &ctrl, SDL_Surface *screen) {
17 monstersLayout->CalculatePositions(background->w, background->h, monsterPositions);
20 void BattleState::ExitState() {
25 void BattleState::HandleEvent(const SDL_Event &) {
29 void BattleState::UpdateWorld(float deltaT) {
33 void BattleState::Render(SDL_Surface *screen) {
34 // TODO: center background if screen bigger
35 SDL_BlitSurface(background, 0, screen, 0);