Gen7Data/Scripts/Interfaces/Pokemon.astypedef

44 lines
1.7 KiB
Plaintext
Raw Normal View History

2021-10-23 12:20:18 +00:00
type Pokemon {
const Species@ Species { get const; };
const Forme@ Forme { get const; };
uint8 Level { get const; };
uint Experience { get const; };
Gender Gender { get const; };
uint8 Coloring { get const; };
bool Shiny { get const; };
const Item@ HeldItem { get const; };
uint CurrentHealth { get const; };
bool IsFainted { get const; };
uint MaxHealth { get const; };
const Species@ DisplaySpecies { get const; };
const Forme@ DisplayForme { get const; };
Battle@ Battle { get const; };
BattleSide@ BattleSide { get const; };
const constString& Status { get const; };
const narray<LearnedMove@>@ Moves { get const; };
2021-10-30 16:45:42 +00:00
float Weight { get const; set; };
float Height { get const; set; };
2021-11-19 17:12:10 +00:00
const constString& ActiveAbility { get const; };
2021-11-20 10:00:48 +00:00
uint64 TypesLength { get const; };
uint8 GetType(uint64 index) const;
2021-10-23 12:20:18 +00:00
bool HasHeldItem(const constString &in name) const;
void SetHeldItem(const constString &in name);
void SetHeldItem(const Item@ item);
string Nickname { get const; };
bool HasType(uint8 type) const;
2021-11-20 13:43:13 +00:00
bool HasType(const constString &in type) const;
2021-10-23 12:20:18 +00:00
void Damage(uint type, DamageSource source);
void Heal(uint type);
void OverrideActiveAbility(const string &in ability);
void ChangeStatBoost(Statistic stat, int8 amount);
uint GetFlatStat(Statistic stat) const;
uint GetBoostedStat(Statistic stat) const;
uint GetBaseStat(Statistic stat) const;
int8 GetStatBoost(Statistic stat) const;
2021-11-20 13:43:13 +00:00
bool HasVolatile(const constString &in name) const;
2021-10-23 12:20:18 +00:00
ref@ AddVolatile(const constString &in name);
void RemoveVolatile(const constString &in name) const;
void ClearStatus() const;
void SetStatus(const constString &inout name);
}