#pragma once #define INITIALROCKETS 10 #define INITIALSHIELDS 10.0 #define MAXROCKETS 50 #define MAXSHIELDS 100.0 #define CONSOLETEXTFADEIN 2000.0 #define CONSOLETEXTDURATION 4000.0 #define CONSOLETEXTFADEOUT 2000.0 typedef struct VPlayer VPlayer; typedef struct VConsoleMessage VConsoleMessage; typedef struct VConsole VConsole; #include "ModelManager.h" #include "VectorText.h" struct VPlayer { int NumRockets; int Shields; Boolean HasTurbo; Boolean HasMachineGun; }; struct VConsoleMessage { char Message[256]; VConsoleMessage * next; }; struct VConsole { VModel CockpitModel; VPlayer * p; int * f; Boolean Paused; float TextFade; VConsoleMessage * MessageStack; /* Linked list */ }; void InitConsole(VConsole * c, VPlayer * p, int * FramesPerSecond); void CleanUpConsole(VConsole * c); void DrawConsole(VConsole * c, float interval); void PushConsoleMessage(VConsole * c, char * msg);