Skip to content

Instantly share code, notes, and snippets.

@wemakeweb wemakeweb/Brett.h
Created May 2, 2013

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