PkmnLib/src/Battling/PkmnScript.hpp

58 lines
3.2 KiB
C++
Raw Normal View History

#ifndef PKMNLIB_PKMNSCRIPT_HPP
#define PKMNLIB_PKMNSCRIPT_HPP
2021-03-07 10:12:18 +00:00
#include <CreatureLib/Battling/ScriptHandling/BattleScript.hpp>
#include "Battle/Battle.hpp"
2020-07-18 11:19:35 +00:00
#ifdef __clang__
2020-07-18 10:42:54 +00:00
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
2020-07-18 11:19:35 +00:00
#elif defined __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#endif
2020-07-18 10:42:54 +00:00
2020-04-28 12:48:56 +00:00
namespace PkmnLib::Battling {
2021-03-07 10:12:18 +00:00
class PkmnScript : public CreatureLib::Battling::BattleScript {
public:
PkmnScript(const ArbUt::OptionalBorrowedPtr<void>& owner) : CreatureLib::Battling::BattleScript(owner) {}
virtual void PreventIncomingCritical(CreatureLib::Battling::ExecutingAttack* non_null attack,
CreatureLib::Battling::Creature* non_null target, u8 hit,
bool* non_null preventCrit){};
virtual void ModifyCriticalStage(CreatureLib::Battling::ExecutingAttack* non_null attack,
CreatureLib::Battling::Creature* non_null target, u8 hit,
u8* non_null critStage){};
virtual void OverrideCriticalModifier(CreatureLib::Battling::ExecutingAttack* non_null attack,
CreatureLib::Battling::Creature* non_null target, u8 hit,
float* non_null critModifier){};
virtual void OverrideSTABModifier(CreatureLib::Battling::ExecutingAttack* non_null attack,
CreatureLib::Battling::Creature* non_null target, u8 hit,
float* non_null stabModifier){};
virtual void ModifyExperienceGain(CreatureLib::Battling::Creature* non_null faintedMon,
CreatureLib::Battling::Creature* non_null winningMon,
uint32_t* non_null experienceGain){};
virtual void DoesShareExperience(CreatureLib::Battling::Creature* non_null faintedMon,
CreatureLib::Battling::Creature* non_null winningMon,
bool* non_null shareExperience){};
virtual void BlockWeather(CreatureLib::Battling::Battle* non_null battle, bool* non_null blockWeather){};
virtual void ModifyOffensiveStatValue(CreatureLib::Battling::ExecutingAttack* non_null attack,
CreatureLib::Battling::Creature* non_null target, u8 hitIndex,
float* non_null modifier){};
virtual void ModifyDefensiveStatValue(CreatureLib::Battling::ExecutingAttack* non_null attack,
CreatureLib::Battling::Creature* non_null target, u8 hitIndex,
float* non_null modifier){};
virtual void ModifyCaptureRateBonus(CreatureLib::Battling::Creature* non_null pokemon,
CreatureLib::Library::Item* non_null catchItem, u8* non_null modifier){};
};
}
2020-07-18 11:19:35 +00:00
#ifdef __clang__
2020-07-18 10:42:54 +00:00
#pragma clang diagnostic pop
2020-07-18 11:19:35 +00:00
#elif defined __GNUC__
#pragma GCC diagnostic pop
#endif
#endif // PKMNLIB_PKMNSCRIPT_HPP