|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "ps.qh"Go to the source code of this file.
Functions | |
| bool | ps_draw (entity minigame) |
| entity | ps_find_piece (entity minig, string tile) |
| void | ps_move (entity minigame, entity player, string thepiece, string pos) |
| bool | ps_move_piece (entity minigame, entity piece, string pos, int leti, int numb) |
| int | ps_server_event (entity minigame, string event,...) |
| void | ps_setup_pieces (entity minigame) |
| bool | ps_tile_blacklisted (string tile) |
| bool | ps_valid_tile (string tile) |
| bool | ps_winning_piece (entity minigame) |
| REGISTER_MINIGAME (ps, _("Peg Solitaire")) | |
Variables | |
| const int | PS_LET_CNT = 7 |
| const int | PS_NUM_CNT = 7 |
| const int | PS_SPECTATOR_TEAM = 255 |
| const int | PS_TILE_SIZE = 8 |
| const float | PS_TURN_DRAW = 0x0400 |
| const float | PS_TURN_MOVE = 0x0100 |
| const float | PS_TURN_TYPE = 0x0f00 |
| const float | PS_TURN_WIN = 0x0200 |
Definition at line 17 of file ps.qc.
References entity(), findentity(), NULL, and owner.
Referenced by ps_move(), ps_move_piece(), and ps_winning_piece().
Definition at line 158 of file ps.qc.
References entity(), MINIG_SF_UPDATE, minigame_server_sendflags(), minigame_tile_buildname(), minigame_tile_letter(), minigame_tile_number(), number, ps_draw(), ps_find_piece(), ps_move_piece(), PS_TURN_DRAW, PS_TURN_MOVE, PS_TURN_WIN, ps_valid_tile(), and ps_winning_piece().
Referenced by ps_server_event().
Definition at line 137 of file ps.qc.
References entity(), MINIG_SF_ALL, minigame_server_sendflags(), minigame_tile_buildname(), ps_find_piece(), strcpy, and strfree.
Referenced by ps_move().
Definition at line 223 of file ps.qc.
References argv(), entity(), findentity(), minigame_count_players(), NULL, owner, ps_move(), ps_setup_pieces(), PS_SPECTATOR_TEAM, PS_TURN_MOVE, strfree, and string_null.
Definition at line 117 of file ps.qc.
References entity(), floor(), MINIG_SF_ALL, MINIG_SF_UPDATE, minigame_server_sendflags(), minigame_tile_buildname(), msle_spawn(), PS_LET_CNT, PS_NUM_CNT, ps_valid_tile(), and strzone().
Referenced by ps_server_event().
Definition at line 38 of file ps.qc.
References minigame_tile_letter(), minigame_tile_number(), number, PS_LET_CNT, and PS_NUM_CNT.
Referenced by ps_valid_tile().
Definition at line 61 of file ps.qc.
References minigame_tile_letter(), minigame_tile_number(), number, PS_LET_CNT, PS_NUM_CNT, and ps_tile_blacklisted().
Referenced by ps_move(), ps_setup_pieces(), and ps_winning_piece().
Definition at line 73 of file ps.qc.
References entity(), findentity(), minigame_tile_buildname(), minigame_tile_letter(), minigame_tile_number(), NULL, number, owner, ps_find_piece(), and ps_valid_tile().
Referenced by ps_move().
| REGISTER_MINIGAME | ( | ps | , |
| _("Peg Solitaire") | ) |
| const int PS_LET_CNT = 7 |
Definition at line 11 of file ps.qc.
Referenced by ps_setup_pieces(), ps_tile_blacklisted(), and ps_valid_tile().
| const int PS_NUM_CNT = 7 |
Definition at line 12 of file ps.qc.
Referenced by ps_setup_pieces(), ps_tile_blacklisted(), and ps_valid_tile().
| const int PS_SPECTATOR_TEAM = 255 |
Definition at line 9 of file ps.qc.
Referenced by ps_server_event().
| const float PS_TURN_MOVE = 0x0100 |
Definition at line 4 of file ps.qc.
Referenced by ps_move(), and ps_server_event().