Xonotic
|
#include "c4.qh"
Go to the source code of this file.
Functions | |
entity | c4_find_piece (entity minig, string tile) |
string | c4_get_lowest_tile (entity minigame, string s) |
void | c4_move (entity minigame, entity player, string pos) |
bool | c4_valid_tile (string tile) |
bool | c4_winning_piece (entity piece) |
REGISTER_MINIGAME (c4, _("Connect Four")) | |
Variables | |
const int | C4_LET_CNT = 7 |
const int | C4_MAX_TILES = 42 |
int | c4_nexteam |
int | c4_npieces |
const int | C4_NUM_CNT = 6 |
const int | C4_SPECTATOR_TEAM = 255 |
const int | C4_TEAMS = 2 |
const int | C4_TILE_SIZE = 8 |
const float | C4_TURN_DRAW = 0x0400 |
const float | C4_TURN_PLACE = 0x0100 |
const float | C4_TURN_TEAM = 0x000f |
const float | C4_TURN_TEAM1 = 0x0001 |
const float | C4_TURN_TEAM2 = 0x0002 |
const float | C4_TURN_WIN = 0x0200 |
const int | C4_WIN_CNT = 4 |
Definition at line 27 of file c4.qc.
References entity(), findentity(), NULL, and owner.
Referenced by c4_get_lowest_tile(), c4_move(), and c4_winning_piece().
Definition at line 140 of file c4.qc.
References c4_find_piece(), minigame_tile_buildname(), and minigame_tile_letter().
Referenced by c4_move().
Definition at line 157 of file c4.qc.
References active_minigame, argv(), c4_find_piece(), c4_get_lowest_tile(), C4_SPECTATOR_TEAM, C4_TURN_DRAW, C4_TURN_TEAM1, c4_valid_tile(), c4_winning_piece(), DRAWFLAG_ADDITIVE, DRAWFLAG_NORMAL, drawpic(), entity(), eY, findentity(), FOREACH_MINIGAME_ENTITY, ftos(), hud_fontsize, MINIG_SF_ALL, 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(), msle_spawn(), NULL, owner, panel_fg_alpha, strcat(), strfree, string_null, strzone(), and vector().
Definition at line 131 of file c4.qc.
References C4_LET_CNT, minigame_tile_letter(), minigame_tile_number(), and number.
Referenced by c4_move().
Definition at line 37 of file c4.qc.
References c4_find_piece(), C4_NUM_CNT, entity(), minigame_tile_buildname(), minigame_tile_letter(), minigame_tile_number(), number, and team.
Referenced by c4_move().
REGISTER_MINIGAME | ( | c4 | , |
_("Connect Four") | |||
) |
const int C4_LET_CNT = 7 |
Definition at line 12 of file c4.qc.
Referenced by c4_valid_tile().
const int C4_NUM_CNT = 6 |
Definition at line 13 of file c4.qc.
Referenced by c4_winning_piece().