fight.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. #include "common.h"
  24. PAL_C_LINKAGE_BEGIN
  25. INT
  26. PAL_BattleSelectAutoTarget(
  27. VOID
  28. );
  29. #ifndef PAL_CLASSIC
  30. VOID
  31. PAL_UpdateTimeChargingUnit(
  32. VOID
  33. );
  34. FLOAT
  35. PAL_GetTimeChargingSpeed(
  36. WORD wDexterity
  37. );
  38. #endif
  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. PAL_C_LINKAGE_END
  86. #endif