Xonotic
|
#include "nmm.qh"
Go to the source code of this file.
Functions | |
entity | nmm_find_tile (entity minig, string id) |
bool | nmm_in_mill (entity tile) |
bool | nmm_in_mill_string (entity tile, string s) |
void | nmm_init_tiles (entity minig) |
void | nmm_kill_tiles (entity minig) |
void | nmm_spawn_tile (string id, entity minig, int distance) |
void | nmm_spawn_tile_square (entity minig, int offset, int skip) |
bool | nmm_tile_adjacent (entity tile1, entity tile2) |
string | nmm_tile_build_hmill (entity tile) |
string | nmm_tile_build_vmill (entity tile) |
bool | nmm_tile_canmove (entity tile) |
REGISTER_MINIGAME (nmm, _("Nine Men's Morris")) | |
Variables | |
const int | NMM_PIECE_BOARD = 0x2 |
const int | NMM_PIECE_DEAD = 0x0 |
const int | NMM_PIECE_HOME = 0x1 |
const int | NMM_SPECTATOR_TEAM = 255 |
int | nmm_tile_distance |
string | nmm_tile_hmill |
entity | nmm_tile_piece |
string | nmm_tile_vmill |
const int | NMM_TURN_FLY = 0x0400 |
const int | NMM_TURN_MOVE = 0x0200 |
const int | NMM_TURN_PLACE = 0x0100 |
const int | NMM_TURN_TAKE = 0x0800 |
const int | NMM_TURN_TAKEANY =0x1000 |
const int | NMM_TURN_TEAM = 0x00ff |
const int | NMM_TURN_TEAM1 = 0x0001 |
const int | NMM_TURN_TEAM2 = 0x0002 |
const int | NMM_TURN_TYPE = 0xff00 |
const int | NMM_TURN_WIN = 0x2000 |
Definition at line 141 of file nmm.qc.
References entity(), findentity(), NULL, and owner.
Referenced by nmm_in_mill(), and nmm_in_mill_string().
Definition at line 188 of file nmm.qc.
References active_minigame, argv(), DRAWFLAG_ADDITIVE, DRAWFLAG_NORMAL, entity(), eY, findentity(), FOREACH_MINIGAME_ENTITY, ftos(), hud_fontsize, int, LOG_TRACE, MINIG_SF_UPDATE, minigame_drawcolorcodedstring_wrapped(), minigame_drawpic_centered(), minigame_hud_denormalize(), minigame_hud_denormalize_size(), minigame_hud_fitsqare, minigame_hud_simpleboard(), minigame_self, minigame_texture(), msle_spawn(), nmm_find_tile(), nmm_in_mill_string(), nmm_init_tiles(), nmm_kill_tiles(), NMM_PIECE_BOARD, NMM_PIECE_DEAD, NMM_PIECE_HOME, NMM_SPECTATOR_TEAM, nmm_tile_adjacent(), nmm_tile_canmove(), NMM_TURN_TAKEANY, NMM_TURN_TEAM, NMM_TURN_TEAM1, NULL, owner, panel_fg_alpha, strcat(), and vector().
Definition at line 175 of file nmm.qc.
References argv(), entity(), nmm_find_tile(), and tokenize().
Referenced by nmm_in_mill().
Definition at line 135 of file nmm.qc.
References nmm_spawn_tile_square().
Referenced by nmm_in_mill().
Definition at line 121 of file nmm.qc.
References entity(), findentity(), NULL, owner, and strfree.
Referenced by nmm_in_mill().
Definition at line 83 of file nmm.qc.
References entity(), minigame_tile_pos(), nmm_tile_build_hmill(), nmm_tile_build_vmill(), and strzone().
Referenced by nmm_spawn_tile_square().
Definition at line 100 of file nmm.qc.
References minigame_tile_buildname(), nmm_spawn_tile(), number, and strzone().
Referenced by nmm_init_tiles().
Definition at line 151 of file nmm.qc.
References fabs(), minigame_tile_letter(), and minigame_tile_number().
Referenced by nmm_in_mill(), and nmm_tile_canmove().
Definition at line 28 of file nmm.qc.
References minigame_tile_buildname(), minigame_tile_letter(), minigame_tile_number(), number, and strcat().
Referenced by nmm_spawn_tile().
Definition at line 54 of file nmm.qc.
References minigame_tile_buildname(), minigame_tile_letter(), minigame_tile_number(), number, and strcat().
Referenced by nmm_spawn_tile().
Definition at line 162 of file nmm.qc.
References entity(), findentity(), nmm_tile_adjacent(), NULL, and owner.
Referenced by nmm_in_mill().
REGISTER_MINIGAME | ( | nmm | , |
_("Nine Men's Morris") | |||
) |
const int NMM_PIECE_BOARD = 0x2 |
Definition at line 18 of file nmm.qc.
Referenced by nmm_in_mill().
const int NMM_PIECE_DEAD = 0x0 |
Definition at line 16 of file nmm.qc.
Referenced by nmm_in_mill().
const int NMM_PIECE_HOME = 0x1 |
Definition at line 17 of file nmm.qc.
Referenced by nmm_in_mill().
const int NMM_SPECTATOR_TEAM = 255 |
Definition at line 20 of file nmm.qc.
Referenced by nmm_in_mill().
const int NMM_TURN_TAKEANY =0x1000 |
Definition at line 9 of file nmm.qc.
Referenced by nmm_in_mill().
const int NMM_TURN_TEAM = 0x00ff |
Definition at line 14 of file nmm.qc.
Referenced by nmm_in_mill().
const int NMM_TURN_TEAM1 = 0x0001 |
Definition at line 12 of file nmm.qc.
Referenced by nmm_in_mill().