Created
May 15, 2013 12:03
-
-
Save wemakeweb/5583500 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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