|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#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) |
| int | c4_server_event (entity minigame, string event,...) |
| 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(), C4_NUM_CNT, entity(), minigame_tile_buildname(), and minigame_tile_letter().
Referenced by c4_move().
Definition at line 157 of file c4.qc.
References c4_find_piece(), c4_get_lowest_tile(), C4_MAX_TILES, C4_TEAMS, C4_TURN_DRAW, C4_TURN_PLACE, C4_TURN_TEAM, C4_TURN_WIN, c4_valid_tile(), c4_winning_piece(), entity(), MINIG_SF_ALL, MINIG_SF_UPDATE, minigame_next_team(), minigame_server_sendflags(), msle_spawn(), and strzone().
Referenced by c4_server_event().
Definition at line 190 of file c4.qc.
References argv(), c4_move(), C4_SPECTATOR_TEAM, C4_TEAMS, C4_TURN_PLACE, C4_TURN_TEAM1, entity(), findentity(), minigame_count_players(), minigame_next_team(), NULL, owner, strfree, and string_null.
Definition at line 131 of file c4.qc.
References C4_LET_CNT, C4_NUM_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_LET_CNT, C4_NUM_CNT, C4_WIN_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(), and c4_winning_piece().
| const int C4_NUM_CNT = 6 |
Definition at line 13 of file c4.qc.
Referenced by c4_get_lowest_tile(), c4_valid_tile(), and c4_winning_piece().
| const int C4_SPECTATOR_TEAM = 255 |
Definition at line 21 of file c4.qc.
Referenced by c4_server_event(), and minigame_show_allspecs().
| const int C4_TEAMS = 2 |
Definition at line 20 of file c4.qc.
Referenced by c4_move(), and c4_server_event().
| const float C4_TURN_PLACE = 0x0100 |
Definition at line 4 of file c4.qc.
Referenced by c4_move(), and c4_server_event().
| const float C4_TURN_TEAM1 = 0x0001 |
Definition at line 8 of file c4.qc.
Referenced by c4_server_event().
| const int C4_WIN_CNT = 4 |
Definition at line 14 of file c4.qc.
Referenced by c4_winning_piece().