|
Dumb-ways-to-memorize
2D game
|
#include "globals.h"#include "parsepowerup.h"#include "entity.h"#include "player.h"#include "parselevel.h"#include <stdio.h>
Include dependency graph for player.c:Go to the source code of this file.
Functions | |
| void | InitPlayer () |
| void | DecrementPlayerLives () |
Variables | |
| char * | gPlayerName = PLAYER_NAME |
| entity_t * | gPlayer = NULL |
| int | gPlayerLives = 0 |
| void DecrementPlayerLives | ( | ) |
Definition at line 40 of file player.c.
References gPlayerLives.
| void InitPlayer | ( | ) |
Initialize the player entity and variables thereof, also used to reset player.
Definition at line 12 of file player.c.
References DrawGeneric(), exitRequest, FindCachedEntity(), FRAME_DELAY, gCurrentLevel, gCurrentTime, gPlayer, gPlayerLives, gPowerUps, gZeroPos, InitNewEntity(), PLAYER_LIVES, ThinkPlayer(), TouchPlayer(), and UsePower().
Referenced by UpdatePowerSelectMenu().
| entity_t* gPlayer = NULL |
The player entity
Definition at line 9 of file player.c.
Referenced by CallInfo(), FreeNonPlayerEntities(), InitPlayer(), ThinkEnemy(), ThinkPlayer(), TouchGoal(), UpdateInfinite(), and UpdateNormal().
| int gPlayerLives = 0 |
The lives of the player
Definition at line 10 of file player.c.
Referenced by DecrementPlayerLives(), InitPlayer(), and ThinkPlayer().
| char* gPlayerName = PLAYER_NAME |
1.8.11