player.c File Reference

Code for network transmission and reception of player data. More...

#include "color.h"
#include "game.h"
#include "tanksprite.h"
#include <string.h>
#include <assert.h>

Include dependency graph for player.c:

Go to the source code of this file.

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 = 0
 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] = { 0 }
 The global array of player data.


Detailed Description

Code for network transmission and reception of player data.

Author:
Jeff Jackowski (jeffj@ro.com)
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.c.


Generated on Mon May 28 04:41:40 2007 for Retro Tank Super Attack by  doxygen 1.5.2