X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fpong%2FCountingWall.cpp;fp=src%2Fpong%2FCountingWall.cpp;h=4b044a71b72d2ed321f04d3c40bad4615c4e6c48;hb=8b4877fe48d21d7e789cf52f81c1d6a87b06bcbc;hp=0000000000000000000000000000000000000000;hpb=42db59e3850c958821e8396fadc20fbeb71050c4;p=sdl-test8.git diff --git a/src/pong/CountingWall.cpp b/src/pong/CountingWall.cpp new file mode 100644 index 0000000..4b044a7 --- /dev/null +++ b/src/pong/CountingWall.cpp @@ -0,0 +1,37 @@ +/* + * CountingWall.cpp + * + * Created on: Apr 17, 2012 + * Author: holy + */ + +#include "CountingWall.h" + +#include + +using game::Entity; + + +namespace pong { + +CountingWall::CountingWall(Scalar width, Scalar height) +: Entity(&shape, std::numeric_limits::infinity()) +, shape(width, height) +, count(0) { + +} + +CountingWall::~CountingWall(void) { + +} + + +void CountingWall::Collide(Entity &, const Ray &) { + ++count; +} + +void CountingWall::Render(SDL_Surface *dest) const { + +} + +}