Defines for the Powerup class. More...
#include <gctypes.h>
Go to the source code of this file.
Defines | |
#define | DEFAULT_POWERUP_DURATION 10000 |
#define | BIG_HAND_SCALE 2.5 |
#define | POWERUP_Y_OFFSET 25 |
#define | POWERUP_X_OFFSET 5 |
#define | POWERUP_WIDTH 32 |
#define | STATIC(code) |
For code inside a function that should only be executed once. | |
#define | POWERUP_ID_NONE 255 |
A PowerupId that represents a null powerup. | |
Typedefs | |
typedef u8 | PowerupId |
Every powerup class is represented by a unique PowerupId. | |
Enumerations | |
enum | PowerupTarget { POWERUP_TARGET_ONE, POWERUP_TARGET_ALL, POWERUP_TARGET_ALL_BUT_ONE } |
Determines what players are the target of this powerup. More... | |
Variables | |
int | g_totalPowerups |
The total number of powerup classes (determined at runtime). |
Defines for the Powerup class.
Definition in file defines_Powerup.h.
#define STATIC | ( | code | ) |
static bool firstTime = true; \ if (firstTime) \ { \ firstTime = false; \ code \ }
For code inside a function that should only be executed once.
Definition at line 41 of file defines_Powerup.h.
enum PowerupTarget |
Determines what players are the target of this powerup.
POWERUP_TARGET_ONE |
Affects the target player. |
POWERUP_TARGET_ALL |
Affects all players. |
POWERUP_TARGET_ALL_BUT_ONE |
Affects all but the target player. |
Definition at line 59 of file defines_Powerup.h.