]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/minigames/minigames.qh
Merge branch 'master' into TimePath/effectinfo
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / minigames / minigames.qh
index 6d3201c51cb9942f0061f9b7687ea7f160f152c4..7425149f389d9b484c38d089ebef97c2b750f6df 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef MINIGAMES_H
 #define MINIGAMES_H
 
-entity minigame_descriptors;
-
 // previous node in a doubly linked list
 .entity list_prev;
 // next node in a linked list
@@ -15,7 +13,7 @@ int minigame_tile_letter(string id);
 
 // Get number index of a tile name
 // Note: this is 0 based, useful for mathematical operations
-// Note: Since the tile notation starts from the bottom left, 
+// Note: Since the tile notation starts from the bottom left,
 //     you may want to do number_of_rows - what_this_function_returns or something
 int minigame_tile_number(string id);
 
@@ -34,6 +32,9 @@ string minigame_tile_name(vector pos, int rows, int columns);
 // Get the next team number (note: team numbers are between 1 and n_teams, inclusive)
 int minigame_next_team(int curr_team, int n_teams);
 
+// Get the previous team number
+int minigame_prev_team(int curr_team, int n_teams);
+
 // set send flags only when on server
 // (for example in game logic which can be used both in client and server
 void minigame_server_sendflags(entity ent, int mgflags);
@@ -85,7 +86,7 @@ int minigame_count_players(entity minigame);
 ///            IMPORTANT: always read in client everything you send from the server!
 ///    cmd(entity minigame_player, int argc, string command)
 ///            self = client entity triggering this
-///            argv(n) = console token 
+///            argv(n) = console token
 ///            argc: number of console tokens
 ///            command: full command string
 ///            triggered when a player does "cmd minigame ..." with some unrecognized command