No Description

battle_initiative.h 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /****************************************************************************
  2. * Copyright (C) 2015-2016 by the SotS Team *
  3. * *
  4. * This file is part of Sovereign of the Skies. *
  5. * *
  6. * Sovereign of the Skies is free software: you can redistribute it *
  7. * and/or modify it *
  8. * under the terms of the GNU Lesser General Public License as published *
  9. * by the Free Software Foundation, either version 3 of the License, or *
  10. * (at your option) any later version provided you include a copy of the *
  11. * licence and this header. *
  12. * *
  13. * Sovereign of the Skies is distributed in the hope that it will be *
  14. * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  16. * GNU Lesser General Public License for more details. *
  17. * *
  18. * You should have received a copy of the GNU Lesser General Public *
  19. * License along with Sovereign of the Skies. *
  20. * If not, see <http://www.gnu.org/licenses/>. *
  21. ****************************************************************************/
  22. /**
  23. * @file battle_initiative.h
  24. * @author Sturmvogel
  25. * @date 15 dec 2016
  26. * @brief Methods calculating speed based stats in-battle
  27. */
  28. #ifndef BATTLE_INITIATIVE_H
  29. #define BATTLE_INITIATIVE_H
  30. /* === INCLUDES === */
  31. #include <types.h>
  32. /* === ENUMERATIONS === */
  33. enum init_enum {ONE, TWO, TIE};
  34. /* === PROTOTYPES === */
  35. /**
  36. * @brief calculate who strikes first
  37. * @param bank1 first contrahend
  38. * @param bank2 second contrahend
  39. * @param ignore_prio ignore priority of moves
  40. * @return bank to strike first as described in enumeration
  41. */
  42. enum init_enum get_first_to_strike(u8 bank1, u8 bank2, u8 ignore_prio);
  43. /**
  44. * @brief get the (modified) speed of bank
  45. * @param bank bank to get speed of
  46. * @return modified speed value of pokemon in bank
  47. */
  48. u16 get_speed(u8 bank);
  49. #endif /* BATTLE_INITIATIVE_H */