21 lines
543 B
C++
21 lines
543 B
C++
#ifndef PKMNLIB_CAPTURELIBRARY_HPP
|
|
#define PKMNLIB_CAPTURELIBRARY_HPP
|
|
|
|
#include <CreatureLib/Defines.hpp>
|
|
#include "../Pokemon/Pokemon.hpp"
|
|
namespace PkmnLib::Battling {
|
|
class CaptureLibrary {
|
|
public:
|
|
struct CaptureResult {
|
|
bool WasCaught;
|
|
u8 Shakes;
|
|
bool WasCritical;
|
|
};
|
|
|
|
CaptureResult TryCatch(Pokemon* non_null pokemon, Library::Item* non_null catchItem,
|
|
ArbUt::Random* non_null random) const;
|
|
};
|
|
}
|
|
|
|
#endif // PKMNLIB_CAPTURELIBRARY_HPP
|