Xonotic
|
#include "bd.qh"
Go to the source code of this file.
Definition at line 632 of file bd.qc.
References bd_reset_moves(), bd_setup_pieces(), BD_TURN_EDIT, MINIG_SF_UPDATE, minigame_server_sendflags(), and sprint().
Referenced by bd_close_editor().
Definition at line 235 of file bd.qc.
References BD_TILE_BRICK1, BD_TILE_BRICK2, BD_TILE_BRICK3, BD_TILE_BRICK4, BD_TILE_BRICK5, BD_TILE_BRICK6, BD_TILE_BRICK7, and BD_TILE_BRICK8.
Referenced by bd_do_fill(), bd_editor_place(), and bd_load_piece().
Definition at line 178 of file bd.qc.
References bd_find_piece(), BD_TURN_WIN, entity(), findentity(), MINIG_SF_UPDATE, minigame_server_sendflags(), NULL, and owner.
Referenced by bd_move().
Definition at line 817 of file bd.qc.
References active_minigame, argv(), bd_activate_editor(), BD_DIR_DN, BD_DIR_LF, BD_DIR_RT, BD_DIR_UP, bd_do_fill(), bd_do_move(), bd_find_dozer(), bd_find_piece(), bd_next_match(), BD_NUM_CNT, bd_restart_match(), bd_save_level(), bd_setup_pieces(), BD_SF_PLAYERMOVES, BD_SPECTATOR_TEAM, BD_TILE_BOULDER, BD_TILE_BRICK1, BD_TILE_BRICK2, BD_TILE_BRICK3, BD_TILE_BRICK4, BD_TILE_BRICK5, BD_TILE_BRICK6, BD_TILE_BRICK7, BD_TILE_BRICK8, BD_TILE_DOZER, BD_TILE_TARGET, BD_TURN_EDIT, BD_TURN_LOSS, BD_TURN_MOVE, BD_TURN_WIN, bd_valid_tile(), DRAWFLAG_NORMAL, entity(), findentity(), FOREACH_MINIGAME_ENTITY, hud_fontsize, int, LOG_INFO, M_PI, 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, sprint(), strcpy, strfree, string_null, vector(), WriteByte(), and WriteShort().
Definition at line 96 of file bd.qc.
References BD_SF_UPDATE_SINGLE, minigame_server_sendflags(), and number.
Referenced by bd_editor_place(), and bd_load_piece().
Definition at line 506 of file bd.qc.
References bd_canfill(), bd_fill_recurse(), bd_find_piece(), BD_TURN_EDIT, bd_unfill_recurse(), entity(), minigame_tile_letter(), minigame_tile_number(), number, sprint(), and stof().
Referenced by bd_close_editor().
Definition at line 454 of file bd.qc.
References bd_editor_place(), bd_move(), BD_TURN_EDIT, BD_TURN_MOVE, and stof().
Referenced by bd_close_editor().
Definition at line 593 of file bd.qc.
References bd_reset_moves(), bd_setup_pieces(), BD_TURN_MOVE, MINIG_SF_UPDATE, minigame_server_sendflags(), and strcpy.
Referenced by bd_next_match().
Definition at line 382 of file bd.qc.
References bd_canfill(), bd_controller_update(), bd_dir_fromname(), bd_find_controller(), bd_find_piece(), BD_TURN_EDIT, bd_valid_tile(), entity(), MINIG_SF_UPDATE, minigame_server_sendflags(), minigame_tile_letter(), minigame_tile_number(), msle_spawn(), number, strfree, and strzone().
Referenced by bd_do_move(), and bd_fill_recurse().
Definition at line 463 of file bd.qc.
References bd_editor_place(), bd_find_piece(), bd_valid_tile(), and minigame_tile_buildname().
Referenced by bd_do_fill().
Definition at line 77 of file bd.qc.
References entity(), findentity(), NULL, and owner.
Referenced by bd_editor_place(), bd_load_piece(), and bd_move_dozer().
Definition at line 104 of file bd.qc.
References bd_dirs, BD_NUM_CNT, BD_SF_UPDATE_ALL, BD_SF_UPDATE_SINGLE, bd_tiletypes, classname, dir, entity(), findentity(), minigame_read_owner(), NET_HANDLE, NULL, number, owner, to, WriteByte(), and WriteString().
Referenced by bd_close_editor(), and bd_move().
Definition at line 68 of file bd.qc.
References entity(), findentity(), NULL, and owner.
Referenced by bd_check_winner(), bd_close_editor(), bd_do_fill(), bd_editor_place(), bd_fill_recurse(), bd_move_dozer(), and bd_unfill_recurse().
Definition at line 782 of file bd.qc.
References bd_load_piece(), bd_set_nextlevel(), fclose(), fgets(), FILE_READ, fopen(), LOG_INFO, strcat(), and substring().
Referenced by bd_reset_moves(), and bd_setup_pieces().
Definition at line 691 of file bd.qc.
References argv(), bd_canfill(), bd_controller_update(), bd_find_controller(), dir, entity(), MINIG_SF_ALL, minigame_server_sendflags(), minigame_tile_letter(), minigame_tile_number(), msle_spawn(), number, stoi, strzone(), and tokenize_console.
Referenced by bd_load_level().
Definition at line 339 of file bd.qc.
References bd_check_winner(), bd_dir_fromname(), bd_find_dozer(), bd_move_dozer(), BD_SF_PLAYERMOVES, BD_TURN_MOVE, entity(), findentity(), LOG_INFO, MINIG_SF_UPDATE, minigame_server_sendflags(), NULL, and owner.
Referenced by bd_do_move().
Definition at line 252 of file bd.qc.
References bd_find_controller(), bd_find_piece(), bd_get_dir(), BD_TILE_BOULDER, BD_TILE_BRICK1, BD_TILE_BRICK2, BD_TILE_BRICK3, BD_TILE_BRICK4, BD_TILE_BRICK5, BD_TILE_BRICK6, BD_TILE_BRICK7, BD_TILE_BRICK8, BD_TILE_DOZER, bd_valid_tile(), dir, entity(), MINIG_SF_UPDATE, minigame_server_sendflags(), minigame_tile_buildname(), minigame_tile_letter(), minigame_tile_number(), number, strcpy, and vector().
Referenced by bd_move().
Definition at line 613 of file bd.qc.
References bd_do_next_match(), bd_set_next_match(), BD_TURN_EDIT, and BD_TURN_WIN.
Referenced by bd_close_editor().
Definition at line 547 of file bd.qc.
References bd_load_level(), BD_SF_PLAYERMOVES, entity(), findentity(), minigame_server_sendflags(), NULL, and owner.
Referenced by bd_activate_editor(), bd_do_next_match(), and bd_restart_match().
Definition at line 622 of file bd.qc.
References bd_reset_moves(), bd_setup_pieces(), BD_TURN_MOVE, MINIG_SF_UPDATE, and minigame_server_sendflags().
Referenced by bd_close_editor().
Definition at line 650 of file bd.qc.
References ftos(), minigame_tile_buildname(), and strcat().
Referenced by bd_save_level().
Definition at line 724 of file bd.qc.
References BD_NUM_CNT, bd_save_controller_piece(), bd_save_piece(), entity(), fclose(), fexists(), FILE_WRITE, findentity(), fopen(), fputs(), LOG_INFO, NULL, owner, and strcat().
Referenced by bd_close_editor().
Definition at line 663 of file bd.qc.
References ftos(), and strcat().
Referenced by bd_save_level().
Definition at line 608 of file bd.qc.
References strcpy.
Referenced by bd_next_match().
Definition at line 674 of file bd.qc.
References argv(), strcpy, and tokenize_console.
Referenced by bd_load_level().
Definition at line 564 of file bd.qc.
References BD_LET_CNT, bd_load_level(), entity(), findentity(), new_pure, NULL, owner, and strfree.
Referenced by bd_activate_editor(), bd_close_editor(), bd_do_next_match(), and bd_restart_match().
Definition at line 479 of file bd.qc.
References bd_find_piece(), bd_valid_tile(), entity(), minigame_tile_buildname(), and strfree.
Referenced by bd_do_fill().
Definition at line 87 of file bd.qc.
References BD_LET_CNT, minigame_tile_letter(), minigame_tile_number(), and number.
Referenced by bd_close_editor(), bd_editor_place(), bd_fill_recurse(), bd_move_dozer(), and bd_unfill_recurse().
REGISTER_MINIGAME | ( | bd | , |
_("Bulldozer") | |||
) |
const int BD_DIR_DN = 1 |
Definition at line 59 of file bd.qc.
Referenced by bd_close_editor(), bd_dir_fromname(), bd_fix_dir(), bd_get_dir(), and bd_get_dir_name().
const int BD_DIR_LF = 2 |
Definition at line 60 of file bd.qc.
Referenced by bd_close_editor(), bd_dir_fromname(), bd_fix_dir(), bd_get_dir(), and bd_get_dir_name().
const int BD_DIR_RT = 3 |
Definition at line 61 of file bd.qc.
Referenced by bd_close_editor(), bd_dir_fromname(), bd_fix_dir(), bd_get_dir(), and bd_get_dir_name().
const int BD_DIR_UP = 0 |
Definition at line 58 of file bd.qc.
Referenced by bd_close_editor(), bd_dir_fromname(), bd_fix_dir(), bd_get_dir(), and bd_get_dir_name().
int bd_dirs[BD_NUM_CNT] |
Definition at line 28 of file bd.qc.
Referenced by bd_find_dozer().
const int BD_LET_CNT = 20 |
Definition at line 18 of file bd.qc.
Referenced by bd_setup_pieces(), and bd_valid_tile().
const int BD_NUM_CNT = 20 |
Definition at line 19 of file bd.qc.
Referenced by bd_close_editor(), bd_find_dozer(), and bd_save_level().
const int BD_SF_PLAYERMOVES = MINIG_SF_CUSTOM |
Definition at line 13 of file bd.qc.
Referenced by bd_close_editor(), bd_move(), and bd_reset_moves().
const int BD_SF_UPDATE_ALL = MINIG_SF_CUSTOM<<2 |
Definition at line 15 of file bd.qc.
Referenced by bd_find_dozer().
const int BD_SF_UPDATE_SINGLE = MINIG_SF_CUSTOM<<1 |
Definition at line 14 of file bd.qc.
Referenced by bd_controller_update(), and bd_find_dozer().
const int BD_SPECTATOR_TEAM = 255 |
Definition at line 24 of file bd.qc.
Referenced by bd_close_editor().
const int BD_TILE_BOULDER = 3 |
Definition at line 47 of file bd.qc.
Referenced by bd_close_editor(), and bd_move_dozer().
const int BD_TILE_BRICK1 = 4 |
Definition at line 48 of file bd.qc.
Referenced by bd_canfill(), bd_close_editor(), and bd_move_dozer().
const int BD_TILE_BRICK2 = 5 |
Definition at line 49 of file bd.qc.
Referenced by bd_canfill(), bd_close_editor(), and bd_move_dozer().
const int BD_TILE_BRICK3 = 6 |
Definition at line 50 of file bd.qc.
Referenced by bd_canfill(), bd_close_editor(), and bd_move_dozer().
const int BD_TILE_BRICK4 = 7 |
Definition at line 51 of file bd.qc.
Referenced by bd_canfill(), bd_close_editor(), and bd_move_dozer().
const int BD_TILE_BRICK5 = 8 |
Definition at line 52 of file bd.qc.
Referenced by bd_canfill(), bd_close_editor(), and bd_move_dozer().
const int BD_TILE_BRICK6 = 9 |
Definition at line 53 of file bd.qc.
Referenced by bd_canfill(), bd_close_editor(), and bd_move_dozer().
const int BD_TILE_BRICK7 = 10 |
Definition at line 54 of file bd.qc.
Referenced by bd_canfill(), bd_close_editor(), and bd_move_dozer().
const int BD_TILE_BRICK8 = 11 |
Definition at line 55 of file bd.qc.
Referenced by bd_canfill(), bd_close_editor(), and bd_move_dozer().
const int BD_TILE_DOZER = 1 |
Definition at line 45 of file bd.qc.
Referenced by bd_close_editor(), and bd_move_dozer().
const int BD_TILE_TARGET = 2 |
Definition at line 46 of file bd.qc.
Referenced by bd_close_editor().
int bd_tiletypes[BD_NUM_CNT] |
Definition at line 42 of file bd.qc.
Referenced by bd_find_dozer().
const int BD_TURN_EDIT = 0x0800 |
Definition at line 9 of file bd.qc.
Referenced by bd_activate_editor(), bd_close_editor(), bd_do_fill(), bd_do_move(), bd_editor_place(), and bd_next_match().
const int BD_TURN_LOSS = 0x0400 |
Definition at line 8 of file bd.qc.
Referenced by bd_close_editor().
const int BD_TURN_MOVE = 0x0100 |
Definition at line 6 of file bd.qc.
Referenced by bd_close_editor(), bd_do_move(), bd_do_next_match(), bd_move(), and bd_restart_match().
const int BD_TURN_WIN = 0x0200 |
Definition at line 7 of file bd.qc.
Referenced by bd_check_winner(), bd_close_editor(), and bd_next_match().