home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #6 / amigaacscoverdisc1998-061998.iso / games / shareware / crystalppc / world.h < prev    next >
C/C++ Source or Header  |  1998-06-08  |  1KB  |  72 lines

  1. #ifndef WORLD_H
  2. #define WORLD_H
  3.  
  4. class Sector;
  5. class Textures;
  6. class PolyPlane;
  7. class Script;
  8. class ScriptRun;
  9. class Vertex;
  10. class Polygon3D;
  11. class ViewPolygon;
  12. class Camera;
  13. class Graphics;
  14. class PolygonSet;
  15. class Thing;
  16. class Collection;
  17. class CsObject;
  18.  
  19. class World
  20. {
  21. private:
  22.   Sector* first_sector;
  23.   Textures* textures;
  24.   PolyPlane* first_plane;
  25.   Script* first_script;
  26.   ScriptRun* first_run;
  27.   Collection* first_collection;
  28.  
  29. public:
  30.   World ();
  31.   ~World ();
  32.  
  33.   void clear ();
  34.  
  35.   Sector* new_sector (char* name, int max_v, int max_p);
  36.   Sector* get_sector (char* name);
  37.   Textures* new_textures (int max);
  38.   Textures* get_textures () { return textures; }
  39.  
  40.   Collection* new_collection (char* name);
  41.   Collection* get_collection (char* name);
  42.  
  43.   PolyPlane* new_plane (char* name);
  44.   PolyPlane* get_plane (char* name);
  45.  
  46.   Thing* get_thing (char* name);
  47.  
  48.   Script* new_script (char* name);
  49.   Script* get_script (char* name);
  50.   ScriptRun* run_script (Script* s, CsObject* ps);
  51.   void step_scripts ();
  52.  
  53.   void trigger_activate (Camera& c);
  54.  
  55.   void draw (Graphics* g, Camera* c, ViewPolygon* view);
  56.  
  57.   void save (FILE* fp, int indent);
  58.   void save (char* name);
  59.   void load (char** buf);
  60.   void load (char* name);
  61.  
  62.   Polygon3D* select_polygon (Camera* c, ViewPolygon* view, int xx, int yy);
  63.   Vertex* select_vertex (Camera* c, ViewPolygon* view, int xx, int yy);
  64.  
  65.   void edit_split_poly (Camera* c);
  66.  
  67.   void shine_lights ();
  68.   void mipmap_settings (int setting);
  69. };
  70.  
  71. #endif /*WORLD_H*/
  72.