Collaboration diagram for Player_t:
|The number of flag captures the player has scored. |
|The number of frames a player has been dead. |
|Bit flags from PLAYER_FLAGS. |
|The number of kills the player has scored. |
|The small label used to identify the player operating the tank. |
|The times, in common game time, of when this player was last updated with information from the network. |
|The time, in common game time, of when this player was last locally updated. |
|The player's name. |
|The ID number of the player. |
|The direction of the tank. |
|The graphical represntation of the shell shot from the tank. |
|The distance the shell has traveled. |
|The direction the shell is traveling. |
|The current location of the shell. |
|The graphical represntation of the player's tank on the field. |
|The team that the player joined. |
|The player's current location. |
For options, the first element in players, an array of Player, will contain the settings that must be sent to the server.
Definition at line 177 of file player.h.
The number of frames a player has been dead.
When the value exceeds DEAD_TIME, the player can respawn and the spinning tank will no longer be drawn.
Bit flags from PLAYER_FLAGS.
Referenced by AddPlayer(), AddToConfigList(), AppendPlayerData(), CalculateOffset(), DisablePlayerLabels(), EnablePlayerLabels(), FixTankCollision(), GameInit(), GameRun(), HandleInput(), HandlePlayerSpawn(), MoveShell(), MsgFailDropConnection(), ReadPlayer(), RemovePlayer(), RotateTank(), SpawnTank(), TeamSelUninit(), TeamSelUpdate(), and UpdatePlayers().
The small label used to identify the player operating the tank.
The ID number of the player.
This should correspond to its array position and is useful when the player is passed as a pointer.
The direction of the tank.
The index of the tank sprite is (rot >> 8) & 0xF.
Referenced by AppendPlayerData(), BfldErrRun(), IsCollidingObstacle(), IsCollidingShell(), IsCollidingTank(), main(), MoveShell(), MoveTank(), ReadPlayer(), RotateTank(), SpawnTank(), SplashInit(), and TeamSelInit().
The graphical represntation of the player's tank on the field.
Referenced by AddPlayer(), BfldErrInit(), BfldErrResize(), BfldErrRun(), BfldErrUninit(), GameInit(), main(), MoveTank(), PlacePlayerLabel(), RemovePlayer(), RotateTank(), SpawnTank(), SplashInit(), SplashResize(), TeamSelInit(), TeamSelInput(), TeamSelUninit(), TeamSelUpdate(), and UpdatePlayers().
The player's current location.
This value includes an 8-bit subpixel location as the least significant byte.