TriggerRegions.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. ////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2016 RWS Inc, All Rights Reserved
  4. //
  5. // This program is free software; you can redistribute it and/or modify
  6. // it under the terms of version 2 of the GNU General Public License as published by
  7. // the Free Software Foundation
  8. //
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU General Public License along
  15. // with this program; if not, write to the Free Software Foundation, Inc.,
  16. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. //
  18. // region.h
  19. // Project: Postal
  20. //
  21. // This module impliments the CSmashatorium, which handles things smashing
  22. // together (also known as collision detection).
  23. //
  24. // History:
  25. // 02/18/97 MJR Started.
  26. //
  27. ////////////////////////////////////////////////////////////////////////////////
  28. #ifndef TRIGGER_REGIONS_H
  29. #define TRIGGER_REGIONS_H
  30. #include "RSPiX.h"
  31. #include "TriggerRgn.h"
  32. #ifdef PATHS_IN_INCLUDES
  33. #include "ORANGE/MultiGrid/MultiGridIndirect.h"
  34. #else
  35. #include "multigridindirect.h"
  36. #endif
  37. #include "realm.h"
  38. // See the cpp file for usage details...
  39. extern RMultiGridIndirect* CreateRegionMap(short sWidth,short sHeight,short sMaxPlanes,
  40. short sTileW,short sTileH);
  41. extern short StrafeAddRegion(RMultiGridIndirect* pMGI,TriggerRgn regions[256]);
  42. extern short CompressMap(RMultiGridIndirect* pMGI,short sTileW,short sTileH);
  43. // Have main guys alert pylons to their presence.
  44. extern void SpewTriggers(CRealm* pRealm, USHORT usDudeUID,short sX,short sZ);
  45. ////////////////////////////////////////////////////////////////////////////////
  46. // EOF
  47. ////////////////////////////////////////////////////////////////////////////////
  48. #endif