Gen7Data/Scripts/Interfaces/Battle.astypedef

25 lines
1023 B
Plaintext
Raw Normal View History

2021-10-23 12:20:18 +00:00
type Battle {
const BattleLibrary@ Library { get const; };
bool CanFlee { get const; };
uint CurrentTurn { get const; };
2021-10-30 16:45:42 +00:00
uint8 PokemonPerSide { get const; };
2021-10-23 12:20:18 +00:00
BattleRandom@ Random { get const; };
ChoiceQueue@ TurnQueue { get const; };
narray<BattleSide>@ Sides { get const; };
narray<BattleParty>@ Parties { get const; };
2021-10-23 16:29:18 +00:00
BattleHistory@ History { get const; };
2021-10-23 12:20:18 +00:00
bool CanUse(BaseTurnChoice@ choice);
ref@ AddVolatile(const constString &in name);
2021-10-30 16:45:42 +00:00
ref@ GetVolatile(const constString &in name);
2021-10-23 12:20:18 +00:00
void RemoveVolatile(const constString &in name) const;
2021-11-19 17:12:10 +00:00
bool SetWeather(const constString &in name) const;
2021-10-23 12:20:18 +00:00
void ClearWeather(const constString &in name) const;
const constString& GetWeatherName() const;
2021-11-19 17:12:10 +00:00
void SuppressWeather() const;
void UnsuppressWeather() const;
2021-10-23 12:20:18 +00:00
BattleSide@ GetBattleSide(uint8 index);
BattleParty@ GetParty(uint8 index);
BattleParty@ FindPartyForPokemon(Pokemon@ pokemon);
2021-10-30 16:45:42 +00:00
bool HasVolatile(const constString &in name) const;
2021-10-23 12:20:18 +00:00
}