4 * Created on: Apr 9, 2012
12 #include "CountingWall.h"
14 #include "../app/State.h"
15 #include "../game/Collision.h"
16 #include "../game/Entity.h"
20 #include <SDL/SDL_ttf.h>
33 virtual void EnterState(app::Control *ctrl, SDL_Surface *screen);
34 virtual void ExitState(void);
36 virtual void HandleEvent(const SDL_Event &);
37 virtual void UpdateWorld(const app::Timer &);
38 virtual void Render(SDL_Surface *);
41 void UpdateEntities(const app::Timer &);
42 void CheckCollisions(const app::Timer &);
43 void CheckWorldCollisions(const app::Timer &);
44 void HandleCollisions(const app::Timer &);
45 void UpdateScore(SDL_Surface *);
46 void RenderHUD(SDL_Surface *);
47 void RenderScore(SDL_Surface *);
52 SDL_Surface *leftScoreText, *rightScoreText;
54 Uint32 worldWidth, worldHeight;
55 Ball ball, secondBall, thirdBall;
56 Paddle leftPaddle, rightPaddle;
57 CountingWall topWall, bottomWall, leftWall, rightWall;
58 std::vector<game::Entity *> entities;
59 std::vector<game::Collision> collisions;
66 #endif /* PONG_MATCH_H_ */