|
Xonotic
|
#include "ttt.qh"
Include dependency graph for ttt.qc:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| REGISTER_MINIGAME (ttt, _("Tic Tac Toe")) | |
| entity | ttt_find_piece (entity minig, string tile) |
| void | ttt_move (entity minigame, entity player, string pos) |
| void | ttt_next_match (entity minigame, entity player) |
| bool | ttt_valid_tile (string tile) |
| bool | ttt_winning_piece (entity piece) |
Variables | |
| int | ttt_ai |
| const int | TTT_LET_CNT = 3 |
| int | ttt_nexteam |
| int | ttt_npieces |
| const int | TTT_NUM_CNT = 3 |
| const int | TTT_SF_PLAYERSCORE = MINIG_SF_CUSTOM |
| const int | TTT_SF_SINGLEPLAYER = MINIG_SF_CUSTOM<<1 |
| const int | TTT_SPECTATOR_TEAM = 255 |
| const int | TTT_TILE_SIZE = 3 |
| const int | TTT_TURN_DRAW = 0x0400 |
| const int | TTT_TURN_NEXT = 0x0800 |
| const int | TTT_TURN_PLACE = 0x0100 |
| const int | TTT_TURN_TEAM = 0x000f |
| const int | TTT_TURN_TEAM1 = 0x0001 |
| const int | TTT_TURN_TEAM2 = 0x0002 |
| const int | TTT_TURN_TYPE = 0x0f00 |
| const int | TTT_TURN_WIN = 0x0200 |
| REGISTER_MINIGAME | ( | ttt | , |
| _("Tic Tac Toe") | |||
| ) |
Definition at line 29 of file ttt.qc.
References entity(), findentity(), NULL, and owner.
Referenced by ttt_move(), and ttt_winning_piece().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 80 of file ttt.qc.
References entity(), MINIG_SF_ALL, MINIG_SF_UPDATE, minigame_next_team(), minigame_server_sendflags(), msle_spawn(), strzone(), ttt_find_piece(), TTT_TURN_DRAW, ttt_valid_tile(), and ttt_winning_piece().
Referenced by ttt_next_match().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 110 of file ttt.qc.
References active_minigame, argv(), DRAWFLAG_ADDITIVE, DRAWFLAG_NORMAL, entity(), findentity(), FOREACH_MINIGAME_ENTITY, ftos(), hud_fontsize, HUD_Panel_DrawBg, int, MINIG_SF_UPDATE, minigame_count_players(), minigame_drawcolorcodedstring_trunc(), minigame_drawpic_centered(), minigame_drawstring_wrapped(), 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(), NULL, owner, panel_fg_alpha, strcat(), strfree, string_null, ttt_move(), TTT_SF_SINGLEPLAYER, TTT_SPECTATOR_TEAM, TTT_TURN_TEAM1, ttt_valid_tile(), ttt_winning_piece(), vector(), and WriteByte().
Here is the call graph for this function:Definition at line 70 of file ttt.qc.
References minigame_tile_letter(), minigame_tile_number(), number, and TTT_LET_CNT.
Referenced by ttt_move(), and ttt_next_match().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 39 of file ttt.qc.
References minigame_tile_buildname(), minigame_tile_letter(), minigame_tile_number(), number, team, and ttt_find_piece().
Referenced by ttt_move(), and ttt_next_match().
Here is the call graph for this function:
Here is the caller graph for this function:| const int TTT_LET_CNT = 3 |
Definition at line 20 of file ttt.qc.
Referenced by ttt_valid_tile().
| const int TTT_SF_PLAYERSCORE = MINIG_SF_CUSTOM |
| const int TTT_SF_SINGLEPLAYER = MINIG_SF_CUSTOM<<1 |
Definition at line 16 of file ttt.qc.
Referenced by ttt_next_match().
| const int TTT_SPECTATOR_TEAM = 255 |
Definition at line 18 of file ttt.qc.
Referenced by ttt_next_match().
| const int TTT_TURN_DRAW = 0x0400 |
Definition at line 6 of file ttt.qc.
Referenced by ttt_move().
| const int TTT_TURN_TEAM1 = 0x0001 |
Definition at line 10 of file ttt.qc.
Referenced by ttt_next_match().