Created
May 2, 2013 10:45
-
-
Save wemakeweb/5501443 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
#ifndef BibLib_Brett_h | |
#define BibLib_Brett_h | |
#include "Feld.h" | |
#include "View.h" | |
class Feld; | |
class View; | |
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 ); | |
}; | |
#endif |
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
#ifndef BibLib_Feld_h | |
#define BibLib_Feld_h | |
#include "Figur.h" | |
#include "View.h" | |
class Figur; | |
class View; | |
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(); | |
}; | |
#endif |
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
#ifndef BibLib_Figur_h | |
#define BibLib_Figur_h | |
#include "Feld.h" | |
class Feld; | |
class Figur{ | |
char *figurtext; | |
Feld *f; | |
public: | |
Figur(char *ftext); | |
~Figur(); | |
char *getFigurText(); | |
void setFeld( Feld * f); | |
Feld * getFeld(); | |
}; | |
#endif |
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
#ifndef BibLib_View_h | |
#define BibLib_View_h | |
class View{ | |
char cbrett[80][80]; | |
public: | |
View(); | |
void show(); | |
void showField(int, int, int, char, char * ); | |
}; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment