#pragma once #define CAMERASPEED 0.001 #define ROTATESPEED 0.0005 #define STATIONARY 0 #define FORWARDS 1 #define BACKWARDS 2 #define LEFT 4 #define RIGHT 8 #define UP 16 #define DOWN 32 #define ROLLLEFT 64 #define ROLLRIGHT 128 #define STOP 256 #define MENU 0 #define PLAYING 1 typedef struct VGame VGame; #include "WindowManager.h" #include "MenuManager.h" #include "WorldManager.h" #include "InterfaceManager.h" #include "Vectors.h" #include "Settings.h" struct VGame { EventLoopTimerRef timerRef; VWindow w; VMenu m; VWorld world; VInterface Interface; VSettings Settings; int Direction; int Rotation; int Status; int FrameTimer; int Frames; int FramesPerSecond; UnsignedWide lastTime; Boolean Paused; }; void InitGame(VGame * g); void RunGame(VGame * g); void CleanUpGame(VGame * g); void SwitchMode(VGame * g, int Mode);