Skip to content

Instantly share code, notes, and snippets.

@wemakeweb wemakeweb/all.h
Created May 15, 2013

Embed
What would you like to do?
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
You can’t perform that action at this time.