]> git.localhorst.tv Git - l2e.git/blob - src/battle/BattleState.cpp
added battle party layout class
[l2e.git] / src / battle / BattleState.cpp
1 /*
2  * BattleState.cpp
3  *
4  *  Created on: Aug 5, 2012
5  *      Author: holy
6  */
7
8 #include "BattleState.h"
9
10 #include "PartyLayout.h"
11
12 using app::Application;
13
14 namespace battle {
15
16 void BattleState::EnterState(Application &ctrl, SDL_Surface *screen) {
17         monstersLayout->CalculatePositions(background->w, background->h, monsterPositions);
18 }
19
20 void BattleState::ExitState() {
21
22 }
23
24
25 void BattleState::HandleEvent(const SDL_Event &) {
26
27 }
28
29 void BattleState::UpdateWorld(float deltaT) {
30
31 }
32
33 void BattleState::Render(SDL_Surface *screen) {
34         // TODO: center background if screen bigger
35         SDL_BlitSurface(background, 0, screen, 0);
36 }
37
38 }