Xonotic
|
#include "ps.qh"
Go to the source code of this file.
Functions | |
bool | ps_draw (entity minigame) |
entity | ps_find_piece (entity minig, string tile) |
void | ps_move (entity minigame, entity player, string thepiece, string pos) |
bool | ps_move_piece (entity minigame, entity piece, string pos, int leti, int numb) |
void | ps_setup_pieces (entity minigame) |
bool | ps_tile_blacklisted (string tile) |
bool | ps_valid_tile (string tile) |
bool | ps_winning_piece (entity minigame) |
REGISTER_MINIGAME (ps, _("Peg Solitaire")) | |
Variables | |
const int | PS_LET_CNT = 7 |
const int | PS_NUM_CNT = 7 |
const int | PS_SPECTATOR_TEAM = 255 |
const int | PS_TILE_SIZE = 8 |
const float | PS_TURN_DRAW = 0x0400 |
const float | PS_TURN_MOVE = 0x0100 |
const float | PS_TURN_TYPE = 0x0f00 |
const float | PS_TURN_WIN = 0x0200 |
Definition at line 17 of file ps.qc.
References entity(), findentity(), NULL, and owner.
Referenced by ps_move(), ps_move_piece(), and ps_winning_piece().
Definition at line 158 of file ps.qc.
References active_minigame, argv(), DRAWFLAG_ADDITIVE, DRAWFLAG_NORMAL, entity(), findentity(), FOREACH_MINIGAME_ENTITY, hud_fontsize, MINIG_SF_UPDATE, minigame_count_players(), minigame_drawpic_centered(), minigame_hud_denormalize(), minigame_hud_denormalize_size(), minigame_hud_fitsqare, minigame_hud_simpleboard(), minigame_server_sendflags(), minigame_texture(), minigame_tile_buildname(), minigame_tile_letter(), minigame_tile_number(), minigame_tile_pos(), NULL, number, owner, panel_fg_alpha, ps_draw(), ps_find_piece(), ps_move_piece(), ps_setup_pieces(), PS_SPECTATOR_TEAM, PS_TURN_DRAW, PS_TURN_MOVE, PS_TURN_WIN, ps_valid_tile(), ps_winning_piece(), strfree, string_null, and vector().
Definition at line 137 of file ps.qc.
References entity(), MINIG_SF_ALL, minigame_server_sendflags(), minigame_tile_buildname(), ps_find_piece(), strcpy, and strfree.
Referenced by ps_move().
Definition at line 117 of file ps.qc.
References entity(), floor(), MINIG_SF_ALL, MINIG_SF_UPDATE, minigame_server_sendflags(), minigame_tile_buildname(), msle_spawn(), PS_LET_CNT, PS_NUM_CNT, ps_valid_tile(), and strzone().
Referenced by ps_move().
Definition at line 38 of file ps.qc.
References minigame_tile_letter(), minigame_tile_number(), and number.
Referenced by ps_valid_tile().
Definition at line 61 of file ps.qc.
References minigame_tile_letter(), minigame_tile_number(), number, PS_LET_CNT, and ps_tile_blacklisted().
Referenced by ps_move(), ps_setup_pieces(), and ps_winning_piece().
Definition at line 73 of file ps.qc.
References entity(), findentity(), minigame_tile_buildname(), minigame_tile_letter(), minigame_tile_number(), NULL, number, owner, ps_find_piece(), and ps_valid_tile().
Referenced by ps_move().
REGISTER_MINIGAME | ( | ps | , |
_("Peg Solitaire") | |||
) |
const int PS_LET_CNT = 7 |
Definition at line 11 of file ps.qc.
Referenced by ps_setup_pieces(), and ps_valid_tile().
const int PS_NUM_CNT = 7 |
Definition at line 12 of file ps.qc.
Referenced by ps_setup_pieces().