--- /dev/null
+/*
+ * CountingWall.h
+ *
+ * Created on: Apr 17, 2012
+ * Author: holy
+ */
+
+#ifndef PONG_COUNTINGWALL_H_
+#define PONG_COUNTINGWALL_H_
+
+#include "../game/Entity.h"
+#include "../shape/AABB.h"
+
+#include <SDL/SDL.h>
+
+namespace pong {
+
+class CountingWall
+: public game::Entity {
+
+ public:
+ CountingWall(Scalar width, Scalar height);
+ virtual ~CountingWall(void);
+
+ public:
+ int HitCount(void) { return count; };
+
+ public:
+ virtual void Collide(Entity &other, const Ray &);
+ virtual void Render(SDL_Surface *dest) const;
+
+ private:
+ shape::AABB shape;
+ int count;
+
+};
+
+}
+
+#endif /* PONG_COUNTINGWALL_H_ */