home *** CD-ROM | disk | FTP | other *** search
/ HOT Scene Stuff / hotscenestuffzyklop1996.iso / demos / sunknown / model.h < prev    next >
C/C++ Source or Header  |  1994-04-06  |  1KB  |  66 lines

  1. // MODEL.H
  2.  
  3. #ifndef _MODEL_H
  4. #define _MODEL_H
  5.  
  6. #include "global.h"
  7. #include "player.h"
  8. #include "coor.h"
  9. #include "obj.h"
  10. #include "seg.h"
  11.  
  12. class cam_C
  13. {
  14. public:
  15.     cam_C();
  16.     seg_C area;
  17.  
  18.     long lastx,lasty;
  19.  
  20.     float maxl,camz,camx,maxz;
  21.  
  22.     byte bigpixels;
  23.     byte fjellpaa,radaron;
  24.  
  25.     word fradarvin;
  26.     word angle;
  27.     word *ormask;
  28.     word *wlen;
  29.     word radarzoom;
  30.     void setangle(void);
  31. };
  32.  
  33. class model_C
  34. {
  35.     word *allormask;
  36.     word *allwlen;
  37.     float *maxilen,*minilen;
  38. public:
  39.     word screenseg,pageno;
  40.     seg_C map;
  41.     byte *oval_ptr,*o_ptr;
  42.     byte colormap;
  43.     byte view;
  44.     byte players;
  45.     player_C player[2];
  46.     cam_C cam[2];
  47.     coor_C coor[COORS];
  48.  
  49.   model_C();
  50.   ~model_C();
  51.   void draw(void);
  52.     void drawover(long xpos, long ypos);
  53.     void draw1pl(long xpos, long ypos);
  54.     void draw2pl(long xpos, long ypos,int camno);
  55.     void swapmap(byte *ptr,long nyx,long nyy, long& oldx,long& oldy);
  56.     void load(char *filnavn);
  57.     void calclen(float camz,float camx, float maxz, word camangle,word h);
  58.     void newpage(void);
  59.     void camangle(int nview);
  60.     void screenoverview(int ikkedraw=0);
  61.     void setpos(int camno,long x,long y);
  62. };
  63.  
  64. void newhandler(void);
  65.  
  66. #endif