#include "render.h"
#include "genconmac.h"
#include "text.h"
Include dependency graph for player.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | Player_t |
| The data describing a player in the game and player options. More... | |
| struct | UpdateTimes_t |
| Stores the time of the last acknowledged update for each of the different parts of the player data. More... | |
Typedefs | |
| typedef Player_t | Player |
| typedef UpdateTimes_t | UpdateTimes |
Enumerations | |
| enum | PLAYER_FLAGS { PLAYER_FORWARD = 1, PLAYER_BACKWARD = 2, PLAYER_ROTRIGHT = 4, PLAYER_STARTROTRIGHT = 8, PLAYER_ROTLEFT = 0x10, PLAYER_STARTROTLEFT = 0x20, PLAYER_SHOT = 0x40, PLAYER_PONG = 0x80, PLAYER_UPDATE_IDENT = 0x100, PLAYER_UPDATE_TANK = 0x200, PLAYER_UPDATE_SHELL = 0x400, PLAYER_UPDATE_DFS = 0x800, PLAYER_DEAD = 0x1000, PLAYER_ACTIVE = 0x2000, PLAYER_UPDATEREQ = 0x4000, PLAYER_MOVEMENT_MASK = 0xFF, PLAYER_MOVEMENT_SOUND = 3, PLAYER_CLIENT_MASK = 0x700, PLAYER_LOCAL_MASK = ~0x207F, PLAYER_UPDATE_ITEMS = 0xF00 } |
| Player status flags for use with Player::flags. More... | |
Functions | |
| void | AddPlayer (Player *p) |
| Initializes the graphics items required to render a player. | |
| void | RemovePlayer (Player *p) |
| Removes a player from the game by marking the player as inactive and destroying related player data. | |
Variables | |
| Uint32 | localPlayer |
| The player ID for the player that is also the user of this process. | |
| Uint8 | localUpdateFlags |
| The set of update flags used to track locally made changes to the local player so that the updated parts can be transmitted to the server. | |
| Player | players [32] |
| The global array of player data. | |
Copyright (C) 2007 Jeff Jackowski
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Or visit their website at: http://www.gnu.org/
Definition in file player.h.
| typedef struct UpdateTimes_t UpdateTimes |
1.5.2