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(float deltaT);
38 virtual void Render(SDL_Surface *);
41 void UpdateEntities(float deltaT);
42 void CheckCollisions(float deltaT);
43 void CheckWorldCollisions(float deltaT);
44 void HandleCollisions(float deltaT);
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;
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_ */