This is the doxygen documentation for gtkboard.
.#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include <math.h>
#include <gdk/gdkkeysyms.h>
#include "game.h"
#include "aaball.h"
Go to the source code of this file.
Data Structures | |
struct | Tetris_state |
Defines | |
#define | TETRIS_CELL_SIZE 20 |
#define | TETRIS_NUM_PIECES 31 |
#define | TETRIS_BOARD_WID 10 |
#define | TETRIS_BOARD_HEIT 22 |
#define | TETRIS_EMPTY 0 |
#define | TETRIS_BRICK_4 1 |
#define | TETRIS_BRICK_22 2 |
#define | TETRIS_BRICK_121A 3 |
#define | TETRIS_BRICK_121B 4 |
#define | TETRIS_BRICK_T 5 |
#define | TETRIS_BRICK_LA 6 |
#define | TETRIS_BRICK_LB 7 |
#define | TETRIS_BRICK_INACTIVE 8 |
#define | TETRIS_BRICK_DYING 9 |
#define | TETRIS_BRICK_MASK 15 |
#define | TETRIS_BRICK_MOTION_MASK 16 |
Functions | |
void | tetris_init () |
void | tetris_set_init_pos (Pos *pos) |
char** | tetris_get_pixmap (int idx, int color) |
int | tetris_getmove_kb (Pos *cur_pos, int key, Player glob_to_play, byte **move, int **) |
int | tetris_animate (Pos *pos, byte **movp) |
ResultType | tetris_who_won (Pos *pos, Player to_play, char **commp) |
void* | tetris_newstate (Pos *, byte *) |
void | tetris_free () |
int | tetris_game_over (byte *board) |
int | tetris_fall (byte *pos, byte **movp, int height) |
Variables | |
char | tetris_colors [6] = {50, 50, 50, 50, 50, 50} |
int* | tetris_init_pos = NULL |
Game | Tetris |
SCORE_FIELD | tetris_score_fields [] = {SCORE_FIELD_USER, SCORE_FIELD_SCORE, SCORE_FIELD_DATE, SCORE_FIELD_NONE} |
char* | tetris_score_field_names [] = {"User", "Score", "Date", NULL} |
int | num_bricks = 0 |
int | level = 1 |
int | anim_time_left = 0 |
int | anim_time_def = 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 150 of file tetris.c. Referenced by tetris_animate(), and tetris_getmove_kb(). |
|
|
|
Definition at line 128 of file tetris.c. Referenced by tetris_who_won(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value: { TETRIS_CELL_SIZE, TETRIS_BOARD_WID, TETRIS_BOARD_HEIT, TETRIS_NUM_PIECES, tetris_colors, NULL, NULL, "Tetris", tetris_init} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|