Xonotic
|
#include "pp.qh"
Go to the source code of this file.
Functions | |
entity | pp_find_piece (entity minig, string tile) |
void | pp_move (entity minigame, entity player, string pos) |
void | pp_next_match (entity minigame, entity player) |
void | pp_setup_pieces (entity minigame) |
bool | pp_valid_move (entity minigame, string pos) |
bool | pp_valid_tile (string tile) |
bool | pp_winning_piece (entity piece) |
REGISTER_MINIGAME (pp, _("Push-Pull")) | |
Variables | |
int | cnt |
entity | pp_curr_piece |
const int | PP_LET_CNT = 7 |
int | pp_nexteam |
const int | PP_NUM_CNT = 7 |
const int | PP_SPECTATOR_TEAM = 255 |
int | pp_team1_score |
int | pp_team2_score |
const int | PP_TILE_SIZE = 7 |
const int | PP_TURN_DRAW = 0x0400 |
const int | PP_TURN_NEXT = 0x0800 |
const int | PP_TURN_PLACE = 0x0100 |
const int | PP_TURN_TEAM = 0x000f |
const int | PP_TURN_TEAM1 = 0x0001 |
const int | PP_TURN_TEAM2 = 0x0002 |
const int | PP_TURN_TYPE = 0x0f00 |
const int | PP_TURN_WIN = 0x0200 |
Definition at line 31 of file pp.qc.
References entity(), findentity(), NULL, and owner.
Referenced by pp_move(), pp_valid_move(), and pp_winning_piece().
Definition at line 98 of file pp.qc.
References entity(), MINIG_SF_ALL, MINIG_SF_UPDATE, minigame_next_team(), minigame_server_sendflags(), msle_spawn(), pp_find_piece(), PP_TURN_DRAW, pp_valid_move(), pp_winning_piece(), strfree, and strzone().
Referenced by pp_next_match().
Definition at line 172 of file pp.qc.
References active_minigame, argv(), DRAWFLAG_NORMAL, entity(), eY, findentity(), FOREACH_MINIGAME_ENTITY, ftos(), hud_fontsize, int, MINIG_SF_UPDATE, minigame_count_players(), minigame_drawcolorcodedstring_wrapped(), minigame_drawpic_centered(), minigame_hud_denormalize(), minigame_hud_denormalize_size(), minigame_hud_fitsqare, minigame_hud_simpleboard(), minigame_next_team(), minigame_self, minigame_server_sendflags(), minigame_texture(), minigame_tile_pos(), NULL, owner, panel_fg_alpha, pp_move(), pp_setup_pieces(), PP_SPECTATOR_TEAM, PP_TURN_TEAM1, pp_valid_move(), pp_valid_tile(), strcat(), strfree, string_null, vector(), and WriteByte().
Definition at line 149 of file pp.qc.
References entity(), MINIG_SF_ALL, MINIG_SF_UPDATE, minigame_server_sendflags(), minigame_tile_buildname(), msle_spawn(), NULL, PP_LET_CNT, PP_NUM_CNT, and strzone().
Referenced by pp_next_match().
Definition at line 70 of file pp.qc.
References entity(), minigame_tile_buildname(), minigame_tile_letter(), minigame_tile_number(), number, pp_find_piece(), pp_valid_tile(), and team.
Referenced by pp_move(), and pp_next_match().
Definition at line 41 of file pp.qc.
References minigame_tile_letter(), minigame_tile_number(), number, and PP_LET_CNT.
Referenced by pp_next_match(), pp_valid_move(), and pp_winning_piece().
Definition at line 51 of file pp.qc.
References minigame_tile_buildname(), minigame_tile_letter(), minigame_tile_number(), number, pp_find_piece(), pp_valid_tile(), and team.
Referenced by pp_move().
REGISTER_MINIGAME | ( | pp | , |
_("Push-Pull") | |||
) |
const int PP_LET_CNT = 7 |
Definition at line 16 of file pp.qc.
Referenced by pp_setup_pieces(), and pp_valid_tile().
const int PP_NUM_CNT = 7 |
Definition at line 17 of file pp.qc.
Referenced by pp_setup_pieces().
const int PP_SPECTATOR_TEAM = 255 |
Definition at line 14 of file pp.qc.
Referenced by pp_next_match().
const int PP_TURN_TEAM1 = 0x0001 |
Definition at line 10 of file pp.qc.
Referenced by pp_next_match().