Skip to content

Instantly share code, notes, and snippets.

@wemakeweb
Created May 15, 2013 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wemakeweb/5583500 to your computer and use it in GitHub Desktop.
Save wemakeweb/5583500 to your computer and use it in GitHub Desktop.
class View{
char cbrett[80][80];
public:
View();
void show();
void showField(int, int, int, char, char * );
};
class Figur;
class Feld{
int x;
int y;
char farbe;
Figur *figur;
View *v;
public:
Feld();
Feld(int xPos, int yPos, char figure, int white);
~Feld();
int getX();
int getY();
char getFarbe();
void setFigur( Figur *);
Figur *getFigur();
void show();
};
class Figur{
char *figurtext;
Feld *f;
public:
Figur(char *ftext);
~Figur();
char *getFigurText();
void setFeld( Feld * f);
Feld * getFeld();
};
class Brett{
char figures[8][8];
Feld *sb[8][8];
View *v;
public:
Brett();
~Brett();
void initSchach();
void show();
bool ziehen( char qx, int qy, char zx, int zy );
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment