This is the doxygen documentation for gtkboard.
.#include <stdio.h>#include <stdlib.h>#include <string.h>#include <assert.h>#include "game.h"#include "../pixmaps/ninemm_bg.xpm"Go to the source code of this file.
Defines | |
| #define | NINEMM_CELL_SIZE 36 |
| #define | NINEMM_NUM_PIECES 2 |
| #define | NINEMM_BOARD_WID 7 |
| #define | NINEMM_BOARD_HEIT 7 |
| #define | NINEMM_EMPTY 0 |
| #define | NINEMM_WP 1 |
| #define | NINEMM_BP 2 |
Functions | |
| void | ninemm_init () |
| int | ninemm_getmove (Pos *, int, int, GtkboardEventType, Player, byte **, int **) |
| void | ninemm_reset_uistate () |
| gboolean | makes_mill (byte *board, Player player, int x, int y) |
Variables | |
| char | ninemm_colors [6] = {200, 200, 200, 140, 140, 140} |
| char* | ninemm_wp_xpm [] |
| char* | ninemm_bp_xpm [] |
| char** | ninemm_pixmaps [] = { ninemm_wp_xpm, ninemm_bp_xpm } |
| int | ninemm_init_pos [NINEMM_BOARD_WID *NINEMM_BOARD_HEIT] = {0} |
| Game | Ninemm |
| int | ninemm_allowed [] |
| int | ninemm_mills [][3][3] |
| int | curx = -1 |
| int | cury = -1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 177 of file ninemm.c. Referenced by ninemm_getmove(). |
|
|
|
|
|
|
|
|
|
|
|
Initial value: { NINEMM_CELL_SIZE, NINEMM_BOARD_WID, NINEMM_BOARD_HEIT,
NINEMM_NUM_PIECES,
ninemm_colors, ninemm_init_pos, ninemm_pixmaps, "Nine Men's Morris", ninemm_init} |
|
|
|
|
|
|
|
|
Initial value:
{
1, 0, 0, 1, 0, 0, 1,
0, 1, 0, 1, 0, 1, 0,
0, 0, 1, 1, 1, 0, 0,
1, 1, 1, 0, 1, 1, 1,
0, 0, 1, 1, 1, 0, 0,
0, 1, 0, 1, 0, 1, 0,
1, 0, 0, 1, 0, 0, 1,
} |
|
|
|
|
|
|
|
|
|
|
|
Initial value:
{
{ {0, 0}, {3, 0}, {6, 0} },
{ {1, 1}, {3, 1}, {5, 1} },
{ {2, 2}, {3, 0}, {4, 2} },
{ {0, 0}, {1, 1}, {2, 2} },
} |
|
|
|
|
|
|