home *** CD-ROM | disk | FTP | other *** search
/ WarCraft 2000 - Nuclear Epidemic / W2000.nrg / SOURCE.War2000 / Wall.h < prev    next >
C/C++ Source or Header  |  1998-04-02  |  1KB  |  51 lines

  1. struct WallCell{
  2.     byte x;
  3.     byte y;
  4.     word Stage;
  5.     word Tile;
  6.     word Health;
  7.     word MaxHealth;
  8.     word WorkerID;
  9.     byte WorkTime;
  10.     byte WorkNeed;
  11.     word BuildProgress;
  12. };
  13. class WallCluster{
  14. public:
  15.     int ClusterSize;
  16.     WallCell* Cells;
  17.     byte OwnerID;
  18.     byte Type;
  19.     int Index;
  20.     WallCluster();
  21. void AddWall(byte x,byte y);
  22. void PreArrangeTiles();
  23. void ArrangeTiles();
  24. int CheckPoint(byte x,byte y);
  25. void ShowCluster();
  26. void Stand();
  27. void Init();
  28. int    GetDataSize();
  29. void CreateData(byte NI,byte* lpData);
  30. int FindWorkPoint(byte x,byte y,word ID);
  31. int FindDamagePoint(byte x,byte y,word ID);
  32. };
  33. class GWSys{
  34. public:
  35.     WallCluster* GWC;
  36.     int MaxWall;
  37.     GWSys();
  38.     word AddCluster(byte* Data);
  39.     void ProcessClusters();
  40.     void BuildCell(byte x,byte y,byte Owner,byte Incr,word WorkerID);
  41.     void DamageCell(byte x,byte y,byte Owner,byte Incr);
  42. };
  43. extern WallCluster TMPCluster;
  44. extern bool BuildWall;
  45. extern bool WStarted;
  46. void SetBuildWallMode();
  47. void WallHandleMouse(int x,int y);
  48. void LoadWalls();
  49. extern GWSys GWALLS;
  50. extern word Links[256][256];
  51. extern word LIndex[256][256];