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