home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
games
/
volume13
/
engarde
/
part01
/
xboard.h
< prev
Wrap
C/C++ Source or Header
|
1992-02-11
|
1KB
|
39 lines
#define DRAWLEFTSIDE 10
#define DRAWRIGHTSIDE 11
#define STR_BAD_MOVE "Cannot move there."
#define STR_BAD_SELECT "Space is Empty."
#define STR_RIGHT_WIN "The Right Side WINS!!"
#define STR_LEFT_WIN "The Left Side WINS!!"
#define STR_MOVE_LAST "Cannot move piece last moved by other player."
#define STR_SIDE_MOVE "Cannot move piece back on side bars."
#define STR_WRONG_SIDE "Cannot move piece from other player's side bar."
#define STR_FAR_MOVE "Cannot move piece that far."
#define STR_MUST_JUMP "Cannot move piece 2 spaces without a jump."
#define STR_SAME_DIR "Must move piece 1 or 2 in same direction."
#define ABS(x) (((x)<0)? (-1*(x)):(x))
#define SGN(x) (((x)<0)? -1:(((x) == 0)? 0:1))
struct _Pt {
int x;
int y;
};
typedef struct _Pt Pt;
void DrawGame();
void DrawRect();
void DrawSpace();
void GetXVals();
void ResizeGame();
void DrawPiece();
void ButtonPress1();
void MvPiece();
PieceType * DGetPiece();
int CheckMove();
void ResetBoard();
void ChangeTurn();
void ShowHelp();
void CloseHelp();
void ShowAbout();
void CloseAbout();