Guest User

ScanrangeCalc.hpp

a guest
Dec 19th, 2015
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.68 KB | None | 0 0
  1. #ifndef SCANRANGECALC_HPP_INCLUDED
  2. #define SCANRANGECALC_HPP_INCLUDED
  3.  
  4. // 41 * 41 = 1681
  5. #include <stdint.h>
  6. #include <stdlib.h>
  7.  
  8. class CScanrangeCalc
  9. {
  10. public:
  11.     CScanrangeCalc();
  12.  
  13.     int8_t pTablesOffset[41][41][2];
  14.     int16_t pTablesCost[41][41];
  15.     int32_t pTablesVision[41][41];
  16.  
  17.     uint32_t ulScanShift;
  18.  
  19.     void InitializeTables();
  20.     void CalculateVision(int32_t x, int32_t y, uint16_t scanrange, uint8_t (*func_GetHeight)(int16_t,int16_t) = NULL, bool (*func_CheckValid)(int16_t,int16_t) = NULL);
  21.  
  22. private:
  23.     bool bDiv2;
  24.     bool SetCell(uint8_t x, uint8_t y, uint8_t height_origin, uint8_t height_cell);
  25. };
  26.  
  27. #endif // SCANRANGECALC_HPP_INCLUDED
Add Comment
Please, Sign In to add comment