/* * World.h * Jonathan Boldiga * 09/03/03 * * Description: All objects, the terrain, audio system, * world music and sound, and the camera * are held here. * */ #ifndef __WORLD_H #define __WORLD_H #include // DirectMusic includes #include #include // for D3DVECTOR #include // for GUID_NULL #include "Entity.h" #include "MD2.h" #include "Object.h" #include "Camera.h" #include "Terrain.h" #include "AudioSystem.h" #include "Node.h" class World{ protected: void onAnimate(float deltaTime); void onDraw(Camera *camera); void onPrepare(); public: HWND hwnd; Terrain* terrain; //the terrain Camera* camera; //the camera Entity* enemy; //enemy 1 ***CHANGE*** Entity* enemy2; //enemy 2 ***CHANGE*** AudioSystem* audioSystem; //the audio system Audio* worldSound; //the world ambient sound Audio* gameMusic; //the game's music World(); World(Camera* camera); ~World(); // initialize terrain, load objects and put in container void loadWorld(); void unloadWorld(); // do physics calculations for all objects in the world // including collisions void animate(float deltaTime); // render all objects in the world void draw(Camera* camera); void prepare(){ onPrepare(); } }; #endif