]> git.localhorst.tv Git - sdl-test7.git/blob - src/pong/CountingWall.h
imported current version
[sdl-test7.git] / src / pong / CountingWall.h
1 /*
2  * CountingWall.h
3  *
4  *  Created on: Apr 17, 2012
5  *      Author: holy
6  */
7
8 #ifndef PONG_COUNTINGWALL_H_
9 #define PONG_COUNTINGWALL_H_
10
11 #include "../game/Entity.h"
12 #include "../geometry/AABB.h"
13
14 #include <SDL/SDL.h>
15
16 namespace pong {
17
18 class CountingWall
19 : public game::Entity {
20
21         public:
22                 explicit CountingWall(const Vector &size);
23                 virtual ~CountingWall(void);
24
25         public:
26                 int HitCount(void) { return count; };
27
28         public:
29                 virtual void Collide(Entity &, const Vector &normal);
30                 virtual void Render(SDL_Surface *dest);
31
32         private:
33                 geometry::AABB shape;
34                 int count;
35
36 };
37
38 }
39
40 #endif /* PONG_COUNTINGWALL_H_ */