Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by doles ( 17 years ago )
#ifndef BALL_H
#define BALL_H
#include"SDL/SDL.h"
#include "Constans.h"
class Ball
{
public:
Ball(SDL_Surface *ball, SDL_Surface *screen);
~Ball();
void reset();
void handleInput(SDL_Event event);
void move();
void show();
int getXV();
int getYV();
void setXV(int x);
void setYV(int y);
void setBallSurface(SDL_Surface* ball);
SDL_Rect box;
private:
int xVel, yVel;
SDL_Surface *ball;
SDL_Surface *screen;
};
#endif
Revise this Paste