Xonotic
|
#include "minigames.qh"
Go to the source code of this file.
Macros | |
#define | MSLE(Name, Fields) i++; if ( class_name == #Name ) return i; |
#define | MSLE(Name, Fields) i++; if ( id == i ) return #Name; |
Functions | |
int | minigame_count_players (entity minigame) |
entity | minigame_get_descriptor (string id) |
int | minigame_next_team (int curr_team, int n_teams) |
int | minigame_prev_team (int curr_team, int n_teams) |
string | minigame_relative_tile (string start_id, int dx, int dy, int rows, int columns) |
void | minigame_server_sendflags (entity ent, int mgflags) |
string | minigame_tile_buildname (int letter, int number) |
int | minigame_tile_letter (string id) |
string | minigame_tile_name (vector pos, int rows, int columns) |
int | minigame_tile_number (string id) |
vector | minigame_tile_pos (string id, int rows, int columns) |
string | msle_classname (int id) |
int | msle_id (string class_name) |
entity | msle_spawn (entity minigame_session, entity e) |
Variables | |
const int | msle_base_id = 2 |
#define MSLE | ( | Name, | |
Fields | |||
) | i++; if ( class_name == #Name ) return i; |
#define MSLE | ( | Name, | |
Fields | |||
) | i++; if ( id == i ) return #Name; |
Definition at line 121 of file minigames.qc.
References entity(), findentity(), NULL, and owner.
Referenced by bd_close_editor(), c4_move(), pp_next_match(), ps_move(), and ttt_next_match().
Definition at line 5 of file minigames.qc.
Referenced by HUD_MinigameBoard(), HUD_MinigameStatus(), NET_HANDLE(), and start_minigame().
Definition at line 65 of file minigames.qc.
Referenced by c4_move(), pp_move(), pp_next_match(), ttt_move(), and ttt_next_match().
Definition at line 71 of file minigames.qc.
Definition at line 40 of file minigames.qc.
References minigame_tile_buildname(), minigame_tile_letter(), minigame_tile_number(), and number.
Definition at line 78 of file minigames.qc.
Referenced by bd_activate_editor(), bd_check_winner(), bd_close_editor(), bd_controller_update(), bd_do_next_match(), bd_editor_place(), bd_load_piece(), bd_move(), bd_move_dozer(), bd_reset_moves(), bd_restart_match(), c4_move(), pp_move(), pp_next_match(), pp_setup_pieces(), ps_move(), ps_move_piece(), ps_setup_pieces(), ttt_move(), and ttt_next_match().
Definition at line 34 of file minigames.qc.
References chr2str, ftos(), and strcat().
Referenced by bd_close_editor(), bd_fill_recurse(), bd_move_dozer(), bd_save_controller_piece(), bd_unfill_recurse(), c4_get_lowest_tile(), c4_winning_piece(), minigame_relative_tile(), minigame_tile_name(), nmm_spawn_tile_square(), nmm_tile_build_hmill(), nmm_tile_build_vmill(), pp_setup_pieces(), pp_valid_move(), pp_winning_piece(), ps_move(), ps_move_piece(), ps_setup_pieces(), ps_winning_piece(), and ttt_winning_piece().
Definition at line 12 of file minigames.qc.
References str2chr, and substring().
Referenced by bd_close_editor(), bd_do_fill(), bd_editor_place(), bd_load_piece(), bd_move_dozer(), bd_valid_tile(), c4_get_lowest_tile(), c4_valid_tile(), c4_winning_piece(), minigame_relative_tile(), minigame_tile_pos(), nmm_tile_adjacent(), nmm_tile_build_hmill(), nmm_tile_build_vmill(), pp_valid_move(), pp_valid_tile(), pp_winning_piece(), ps_move(), ps_tile_blacklisted(), ps_valid_tile(), ps_winning_piece(), ttt_valid_tile(), and ttt_winning_piece().
Definition at line 54 of file minigames.qc.
References floor(), minigame_tile_buildname(), and number.
Definition at line 21 of file minigames.qc.
References stof(), and substring().
Referenced by bd_close_editor(), bd_do_fill(), bd_editor_place(), bd_load_piece(), bd_move_dozer(), bd_valid_tile(), c4_valid_tile(), c4_winning_piece(), minigame_relative_tile(), minigame_tile_pos(), nmm_tile_adjacent(), nmm_tile_build_hmill(), nmm_tile_build_vmill(), pp_valid_move(), pp_valid_tile(), pp_winning_piece(), ps_move(), ps_tile_blacklisted(), ps_valid_tile(), ps_winning_piece(), ttt_valid_tile(), and ttt_winning_piece().
Definition at line 27 of file minigames.qc.
References minigame_tile_letter(), minigame_tile_number(), and vec2.
Referenced by bd_close_editor(), c4_move(), nmm_spawn_tile(), pp_next_match(), ps_move(), and ttt_next_match().
Definition at line 110 of file minigames.qc.
References MINIGAME_SIMPLELINKED_ENTITIES, and msle_base_id.
Referenced by NET_HANDLE().
Definition at line 99 of file minigames.qc.
References MINIGAME_SIMPLELINKED_ENTITIES, and msle_base_id.
Referenced by minigame_SendEntity().
Definition at line 87 of file minigames.qc.
References minigame_CheckSend(), and minigame_SendEntity().
Referenced by bd_editor_place(), bd_load_piece(), c4_move(), nmm_in_mill(), pp_move(), pp_setup_pieces(), ps_setup_pieces(), and ttt_move().
const int msle_base_id = 2 |
Definition at line 98 of file minigames.qc.
Referenced by msle_classname(), and msle_id().