fight.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. VOID
  32. PAL_UpdateTimeChargingUnit(
  33. VOID
  34. );
  35. FLOAT
  36. PAL_GetTimeChargingSpeed(
  37. WORD wDexterity
  38. );
  39. VOID
  40. PAL_BattleUpdateFighters(
  41. VOID
  42. );
  43. VOID
  44. PAL_BattlePlayerCheckReady(
  45. VOID
  46. );
  47. VOID
  48. PAL_BattleStartFrame(
  49. VOID
  50. );
  51. VOID
  52. PAL_BattleCommitAction(
  53. BOOL fRepeat
  54. );
  55. VOID
  56. PAL_BattlePlayerPerformAction(
  57. WORD wPlayerIndex
  58. );
  59. VOID
  60. PAL_BattleEnemyPerformAction(
  61. WORD wEnemyIndex
  62. );
  63. VOID
  64. PAL_BattleShowPlayerPreMagicAnim(
  65. WORD wPlayerIndex,
  66. BOOL fSummon
  67. );
  68. VOID
  69. PAL_BattleDelay(
  70. WORD wDuration,
  71. WORD wObjectID,
  72. BOOL fUpdateGesture
  73. );
  74. VOID
  75. PAL_BattleStealFromEnemy(
  76. WORD wTarget,
  77. WORD wStealRate
  78. );
  79. VOID
  80. PAL_BattleSimulateMagic(
  81. SHORT sTarget,
  82. WORD wMagicObjectID,
  83. WORD wBaseDamage
  84. );
  85. BOOL
  86. PAL_CheckRoleStatus(
  87. WORD rgwStatus[],
  88. WORD wNumCondition,
  89. BOOL bSatisfyAll,
  90. BOOL bClassicParalyzed,
  91. ...
  92. );
  93. #ifdef __cplusplus
  94. }
  95. #endif
  96. #endif