GBCSolution.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #ifndef GBCSOLUTION_H
  2. #define GBCSOLUTION_H
  3. #include "lib/ballistics/ballistics.h"
  4. #include <stdio.h>
  5. #include <string.h>
  6. class GBCSolution {
  7. public:
  8. GBCSolution(void);
  9. GBCSolution(
  10. double* isolution,
  11. const char* name,
  12. double ibc,
  13. double isightheight,
  14. int iweight,
  15. int imv,
  16. int iangle,
  17. int izerorange,
  18. int iwindspeed,
  19. int iwindangle,
  20. int itemp,
  21. int ihumidity,
  22. double ipressure,
  23. int ialtitude,
  24. int rows,
  25. int ckweather,
  26. int df
  27. );
  28. ~GBCSolution();
  29. double* sln;
  30. const char* Name(void);
  31. double BC(void);
  32. double SightHeight(void);
  33. int MuzzleVelocity(void);
  34. int ShootingAngle(void);
  35. int ZeroRange(void);
  36. int WindSpeed(void);
  37. int WindAngle(void);
  38. int Temp(void);
  39. double Pressure(void);
  40. int Humidity(void);
  41. int Altitude(void);
  42. int Weight(void);
  43. int MaxRows(void);
  44. int MaxRows(int);
  45. int UseWeather(void);
  46. double GetRange(int yardage);
  47. double GetPath(int yardage);
  48. double GetMOA(int yardage);
  49. double GetTime(int yardage);
  50. double GetWindage(int yardage);
  51. double GetWindageMOA(int yardage);
  52. double GetVelocity(int yardage);
  53. double GetVx(int yardage);
  54. double GetVy(int yardage);
  55. double GetEnergy(int yardage);
  56. int df;
  57. private:
  58. double* solution;
  59. char name[255];
  60. int weight;
  61. double bc;
  62. double sightheight;
  63. int mv;
  64. int angle;
  65. int zerorange;
  66. int windspeed;
  67. int windangle;
  68. int temp;
  69. int ckweather;
  70. double pressure;
  71. int humidity;
  72. int altitude;
  73. int rows;
  74. };
  75. #endif