#pragma once typedef struct VPowerup VPowerup; #include "ObjectManager.h" #include "Console.h" #define POWERUPTYPENONE 0 #define POWERUPTYPEROCKETS 1 #define POWERUPTYPEHEALTH 2 #define POWERUPTYPETURBO 3 #define POWERUPTYPEMACHINEGUN 4 #define POWERUPROTATESPEED 0.0005 struct VPowerup { VObject Object; int Type; int Amount; Boolean taggedForRemoval; }; void InitPowerup(VPowerup * p); void CleanUpPowerup(VPowerup * p); void SetupPowerup(VPowerup * p, int type, int amount); void RunPowerup(VPowerup * p, float interval, void * w); void DrawPowerup(VPowerup * p); void CopyPowerup(VPowerup * src, VPowerup * dest);