fight.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /* -*- mode: c; tab-width: 4; c-basic-offset: 3; c-file-style: "linux" -*- */
  2. //
  3. // Copyright (c) 2009, Wei Mingzhi <whistler_wmz@users.sf.net>.
  4. // All rights reserved.
  5. //
  6. // This file is part of SDLPAL.
  7. //
  8. // SDLPAL is free software: you can redistribute it and/or modify
  9. // it under the terms of the GNU General Public License as published by
  10. // the Free Software Foundation, either version 3 of the License, or
  11. // (at your option) any later version.
  12. //
  13. // This program is distributed in the hope that it will be useful,
  14. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. // GNU General Public License for more details.
  17. //
  18. // You should have received a copy of the GNU General Public License
  19. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. //
  21. #ifndef FIGHT_H
  22. #define FIGHT_H
  23. #ifdef __cplusplus
  24. extern "C"
  25. {
  26. #endif
  27. INT
  28. PAL_BattleSelectAutoTarget(
  29. VOID
  30. );
  31. #ifndef PAL_CLASSIC
  32. VOID
  33. PAL_UpdateTimeChargingUnit(
  34. VOID
  35. );
  36. FLOAT
  37. PAL_GetTimeChargingSpeed(
  38. WORD wDexterity
  39. );
  40. #endif
  41. VOID
  42. PAL_BattleUpdateFighters(
  43. VOID
  44. );
  45. VOID
  46. PAL_BattlePlayerCheckReady(
  47. VOID
  48. );
  49. VOID
  50. PAL_BattleStartFrame(
  51. VOID
  52. );
  53. VOID
  54. PAL_BattleCommitAction(
  55. BOOL fRepeat
  56. );
  57. VOID
  58. PAL_BattlePlayerPerformAction(
  59. WORD wPlayerIndex
  60. );
  61. VOID
  62. PAL_BattleEnemyPerformAction(
  63. WORD wEnemyIndex
  64. );
  65. VOID
  66. PAL_BattleShowPlayerPreMagicAnim(
  67. WORD wPlayerIndex,
  68. BOOL fSummon
  69. );
  70. VOID
  71. PAL_BattleDelay(
  72. WORD wDuration,
  73. WORD wObjectID,
  74. BOOL fUpdateGesture
  75. );
  76. VOID
  77. PAL_BattleStealFromEnemy(
  78. WORD wTarget,
  79. WORD wStealRate
  80. );
  81. VOID
  82. PAL_BattleSimulateMagic(
  83. SHORT sTarget,
  84. WORD wMagicObjectID,
  85. WORD wBaseDamage
  86. );
  87. #ifdef __cplusplus
  88. }
  89. #endif
  90. #endif