cstuff.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * This file is part of XDRE.
  3. *
  4. * XDRE is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * XDRE 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
  15. * along with XDRE. If not, see <http://www.gnu.org/licenses/>.
  16. *
  17. * Этот файл — часть XDRE.
  18. *
  19. * XDRE — свободная программа: вы можете перераспространять её и/или
  20. * изменять её на условиях Стандартной общественной лицензии GNU в том виде,
  21. * в каком она была опубликована Фондом свободного программного обеспечения;
  22. * либо версии 2 лицензии, либо (по вашему выбору) любой более поздней
  23. * версии.
  24. *
  25. * XDRE распространяется в надежде, что она будет полезной,
  26. * но БЕЗО ВСЯКИХ ГАРАНТИЙ; даже без неявной гарантии ТОВАРНОГО ВИДА
  27. * или ПРИГОДНОСТИ ДЛЯ ОПРЕДЕЛЕННЫХ ЦЕЛЕЙ. Подробнее см. в Стандартной
  28. * общественной лицензии GNU.
  29. *
  30. * Вы должны были получить копию Стандартной общественной лицензии GNU
  31. * вместе с этой программой. Если это не так, см.
  32. * <http://www.gnu.org/licenses/>.
  33. *
  34. * Description: avoiding macro minefield.
  35. */
  36. #ifndef __CSTUFF_H
  37. #define __CSTUFF_H
  38. #define FRACBITS 16 //screw m_fixed.h
  39. #define FRACUNIT (1<<FRACBITS)
  40. extern int M_CheckParm(const char *check);
  41. int playeringameGet(int plr); //get
  42. void playeringameSet(int plr, int val); //set
  43. //-1 refreshes current line/sector/thing
  44. void x_setLinedefCheck(int linedef);
  45. void x_setSectorCheck(int sector);
  46. void x_setThingCheck(int index);
  47. int x_getRngIndex(void);
  48. void x_setAngleType(int type);
  49. unsigned int x_getAngle(short type);
  50. double x_getXPos(void);
  51. double x_getYPos(void);
  52. double x_getZPos(void);
  53. double x_getPrevXPos(void);
  54. double x_getPrevYPos(void);
  55. double x_getPrevZPos(void);
  56. double x_getXMom(void);
  57. double x_getYMom(void);
  58. int x_GetCompatibility(void);
  59. void x_SetCompatibility(int compatflags);
  60. void x_getOptions(int options[]);
  61. void x_changeOptions(int options[]);
  62. void x_initHeader(unsigned char* demo_p);
  63. int x_initSize(void);
  64. void x_clearMapSavepoints(void);
  65. void x_clearUserSavepoint(void);
  66. int x_getSavepointTic(int dest);
  67. //try if saveing is feasible
  68. //return 0 if good
  69. int x_setSavepoint(int isUserSave);
  70. //loads closest savepoint around gametic = tic
  71. //return 0 if good
  72. int x_loadSavepoint(int dest);
  73. #endif // __CSTUFF_H