|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "ttt.qh"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) |
| int | ttt_server_event (entity minigame, string event,...) |
| 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().
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_LET_CNT, TTT_NUM_CNT, TTT_SF_PLAYERSCORE, TTT_TURN_DRAW, TTT_TURN_PLACE, TTT_TURN_TEAM, TTT_TURN_WIN, ttt_valid_tile(), and ttt_winning_piece().
Referenced by ttt_server_event().
Definition at line 110 of file ttt.qc.
References entity(), findentity(), MINIG_SF_UPDATE, minigame_server_sendflags(), NULL, owner, TTT_TURN_DRAW, TTT_TURN_NEXT, TTT_TURN_PLACE, and TTT_TURN_WIN.
Referenced by ttt_server_event().
Definition at line 137 of file ttt.qc.
References argv(), entity(), findentity(), int, minigame_count_players(), minigame_next_team(), MSG_ENTITY, NULL, owner, strfree, string_null, ttt_move(), ttt_next_match(), TTT_SF_PLAYERSCORE, TTT_SF_SINGLEPLAYER, TTT_SPECTATOR_TEAM, TTT_TURN_PLACE, TTT_TURN_TEAM1, and WriteByte().
Definition at line 70 of file ttt.qc.
References minigame_tile_letter(), minigame_tile_number(), number, TTT_LET_CNT, and TTT_NUM_CNT.
Referenced by ttt_move().
Definition at line 39 of file ttt.qc.
References entity(), minigame_tile_buildname(), minigame_tile_letter(), minigame_tile_number(), number, team, and ttt_find_piece().
Referenced by ttt_move().
| const int TTT_LET_CNT = 3 |
Definition at line 20 of file ttt.qc.
Referenced by ttt_move(), and ttt_valid_tile().
| const int TTT_NUM_CNT = 3 |
Definition at line 21 of file ttt.qc.
Referenced by ttt_move(), and ttt_valid_tile().
| const int TTT_SF_PLAYERSCORE = MINIG_SF_CUSTOM |
Definition at line 15 of file ttt.qc.
Referenced by ttt_move(), and ttt_server_event().
| const int TTT_SF_SINGLEPLAYER = MINIG_SF_CUSTOM<<1 |
Definition at line 16 of file ttt.qc.
Referenced by ttt_server_event().
| const int TTT_SPECTATOR_TEAM = 255 |
Definition at line 18 of file ttt.qc.
Referenced by ttt_server_event().
| const int TTT_TURN_DRAW = 0x0400 |
Definition at line 6 of file ttt.qc.
Referenced by ttt_move(), and ttt_next_match().
| const int TTT_TURN_NEXT = 0x0800 |
Definition at line 7 of file ttt.qc.
Referenced by ttt_next_match().
| const int TTT_TURN_PLACE = 0x0100 |
Definition at line 4 of file ttt.qc.
Referenced by ttt_move(), ttt_next_match(), and ttt_server_event().
| const int TTT_TURN_TEAM = 0x000f |
Definition at line 12 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_server_event().
| const int TTT_TURN_WIN = 0x0200 |
Definition at line 5 of file ttt.qc.
Referenced by ttt_move(), and ttt_next_match().