This is the doxygen documentation for gtkboard.
.#include <stdio.h>#include <string.h>#include <assert.h>#include <stdlib.h>#include "game.h"#include "aaball.h"Go to the source code of this file.
Defines | |
| #define | BLET_CELL_SIZE 55 |
| #define | BLET_NUM_PIECES 2 |
| #define | BLET_BOARD_WID 8 |
| #define | BLET_BOARD_HEIT 8 |
| #define | BLET_EMPTY 0 |
| #define | BLET_RP 1 |
| #define | BLET_GP 2 |
| #define | FLIP(x) ((x)==BLET_RP?BLET_GP:BLET_RP) |
Functions | |
| void | blet_init () |
| int | blet_getmove (Pos *, int, int, GtkboardEventType, Player, byte **, int **) |
| ResultType | blet_who_won (Pos *, Player, char **) |
| unsigned char* | blet_get_rgbmap (int, int) |
| InputType | blet_event_handler (Pos *pos, GtkboardEvent *event, MoveInfo *move_info_p) |
Variables | |
| char | blet_colors [6] = {140, 140, 180, 140, 140, 180} |
| int | blet_init_pos [BLET_BOARD_WID *BLET_BOARD_HEIT] |
| SCORE_FIELD | blet_score_fields [] = {SCORE_FIELD_USER, SCORE_FIELD_SCORE, SCORE_FIELD_TIME, SCORE_FIELD_DATE, SCORE_FIELD_NONE} |
| char* | blet_score_field_names [] = {"User", "Flips", "Time", "Date", NULL} |
| Game | Blet |
| int | incx [] = { -1, 1, 0, 0} |
| int | incy [] = { 0, 0, 1, -1} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 106 of file blet.c. Referenced by blet_event_handler(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value: { BLET_CELL_SIZE, BLET_BOARD_WID, BLET_BOARD_HEIT,
BLET_NUM_PIECES,
blet_colors, blet_init_pos, NULL, "Blet", blet_init} |
|
|
|
|
|
Initial value:
{
1 , 2 , 1 , 2 , 1 , 2 , 1 , 2 ,
2 , 0 , 0 , 0 , 0 , 0 , 0 , 1 ,
1 , 0 , 0 , 0 , 0 , 0 , 0 , 2 ,
2 , 0 , 0 , 0 , 0 , 0 , 0 , 1 ,
1 , 0 , 0 , 0 , 0 , 0 , 0 , 2 ,
2 , 0 , 0 , 0 , 0 , 0 , 0 , 1 ,
1 , 0 , 0 , 0 , 0 , 0 , 0 , 2 ,
2 , 1 , 2 , 1 , 2 , 1 , 2 , 1 ,
} |
|
|
|
|
|
|
|
|
|
|
|
|