thecplusplusguy

Simple pong game (SDL) - paddle.h

Jul 4th, 2011
1,509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. //Simple pong game - paddle.h
  2. //created by thecplusplusguy
  3. //     http://www.youtube.com/user/thecplusplusguy
  4. #include <SDL/SDL.h>
  5. #ifndef PADDLE_H
  6. #define PADDLE_H
  7.  
  8. class paddle{
  9.     SDL_Rect box;
  10.     SDL_Surface* image;
  11.     int yvel;
  12.     int point;
  13.     public:
  14.     paddle(SDL_Surface* img,int x,int y,int w,int h,int yVel);
  15.     ~paddle();
  16.     SDL_Rect* getRect();
  17.     void moveUp();
  18.     void moveDown();
  19.     void show();
  20.     void incpoint();
  21.     void setBack(int x,int y,int w,int h,int yVel);
  22.     int getPoints();
  23. };
  24.  
  25. #endif
Advertisement
Add Comment
Please, Sign In to add comment