#pragma once #include "Vectors.h" #include "Console.h" #include "Quaternions.h" #include "Camera.h" #include "ObjectWrapper.h" #include "PhysicsManager.h" #include "LevelManager.h" #include #define PLAYERSHIPRADIUS 0.4 #define MAXROCKETTARGETRANGE (80.0 * 80.0) #define ALPHAFILL 0.017647059 #define NUMLEVELS 30 /* Load as many as you can find! */ typedef struct VWorld { VObject CrossHair; VObject Target; VObjectWrapper * Objects; int CurrentLevel; int NumberOfLevels; VLevel Level; VLevel * Levels; Boolean LevelValid; VLevel Arena; VBoss Boss; VCamera Camera; VPhysics Physics; VConsole Console; VPlayer Player; Boolean Finished; } VWorld; void InitPlayer(VPlayer * p); void InitWorld(VWorld * world); void AddWeapon(VWorld * world, int Type); void CleanUpWorld(VWorld * world); void DrawCrossHair(VWorld * world); void RunWorld(VWorld * world, float interval); void DrawWorld(VWorld * world, float interval); Boolean InBounds(VWorld * world, Vector * Pos, float Radius, Vector * wall); void DamagePlayer(VWorld * world, int amount); void FindTarget(VWorld * w); void StartLevel(VWorld * world, int level); void StopLevel(VWorld * world);