Subversion Repositories sssnakesss

Compare Revisions

Ignore whitespace Rev 9 → Rev 10

/include/point.hpp
1,9 → 1,13
struct point
{
public:
point(int x, int y);
~point();
 
int X;
int Y;
}
#ifndef POINT_HPP
#define POINT_HPP
 
class Point
{
public:
Point(int x, int y);
 
int X;
int Y;
};
 
#endif // POINT_HPP
/include/sssnakesss.hpp
1,8 → 1,6
#ifndef SSSNAKESSS_HPP
#define SSSNAKESSS_HPP
 
struct SDL_Surface;
 
class SSSNAKESSS
{
public:
29,6 → 27,7
SDL_Surface *screen;
map<string, Texture *> textures;
Snake *snake;
};
 
#endif // SSSNAKESSS_HPP
/include/snake.hpp
1,17 → 1,20
#include "point.hpp"
#include <vector>
 
class snake
{
public:
snake();
~snake();
nextPoint(point newPoint);
 
vector<point> points; // list of points snake occupies
 
// colour
int R;
int G;
int B;
};
#ifndef SNAKE_HPP
#define SNAKE_HPP
 
class Snake
{
public:
Snake();
void nextPoint(Point newPoint);
 
// Stuff that should be private
vector<Point> points; // list of points snake occupies
 
// Colour Values
int R;
int G;
int B;
};
 
#endif // SNAKE_HPP