home *** CD-ROM | disk | FTP | other *** search
/ WarCraft 2000 - Nuclear Epidemic / W2000.nrg / SOURCE.War2000 / Upgrade.h < prev    next >
C/C++ Source or Header  |  1998-09-21  |  745b  |  50 lines

  1. class OneObject;
  2. class SimpleUTP{
  3. public:
  4.     char* Message;
  5.     byte NLinks;
  6.     byte Kind;
  7.     int* Links;
  8.     byte NAuto;
  9.     int* AutoPerf;
  10.     bool Enabled:1;
  11.     bool OneTime:1;
  12.     bool Done:1;
  13.     bool Finished:1;
  14.     word IFileID;
  15.     word IFIndex;
  16.     word Cost;
  17.     word Wood;
  18.     word Oil;
  19.     word MonsterID;
  20.     word Time;
  21.     word Stage;
  22.     void DoUpgrade(byte NI,OneObject* OB);
  23. };
  24. class UTP1:public SimpleUTP{
  25. public:
  26.     byte ResType;
  27.     byte AddVal;
  28. };
  29. class UTP2:public SimpleUTP{
  30. public:
  31.     word MID;
  32.     byte CharID;
  33.     byte AddVal;
  34. };
  35. class UTP3:public SimpleUTP{
  36. public:
  37.     word FinalMID;
  38. };
  39. class Upgrade{
  40. public:
  41.     union{
  42.         UTP1* utp1[1024];
  43.         UTP2* utp2[1024];
  44.         UTP3* utp3[1024];
  45.         SimpleUTP* utp[1024];
  46.     };
  47.     int NUpgrades;
  48.     Upgrade();
  49. };
  50.