Began work on unit tests
This commit is contained in:
@@ -2,6 +2,7 @@ shared interface Battle {
|
||||
const BattleLibrary@ Library { get const; }
|
||||
bool CanUse(BaseTurnChoice@ choice);
|
||||
bool CanFlee { get const; }
|
||||
uint CurrentTurn { get const; }
|
||||
BattleRandom@ Random { get const; }
|
||||
ChoiceQueue@ TurnQueue { get const; }
|
||||
ref AddVolatile(const constString &in name);
|
||||
|
||||
@@ -2,4 +2,5 @@ shared interface BattleSide {
|
||||
bool SwapPositions(uint8 a, uint8 b);
|
||||
uint8 SideIndex { get const; }
|
||||
uint8 GetPokemonIndex(const Pokemon@ pokemon) const;
|
||||
Pokemon@ GetPokemon(uint8 index) const;
|
||||
}
|
||||
|
||||
6
Scripts/Interfaces/EvolutionData.as
Normal file
6
Scripts/Interfaces/EvolutionData.as
Normal file
@@ -0,0 +1,6 @@
|
||||
shared interface EvolutionData {
|
||||
const Species& NewSpecies { get const; }
|
||||
EvolutionMethod Method { get const; }
|
||||
uint64 DataCount { get const; }
|
||||
EffectParameter@ GetData(uint64 index) const;
|
||||
}
|
||||
17
Scripts/Interfaces/EvolutionMethod.as
Normal file
17
Scripts/Interfaces/EvolutionMethod.as
Normal file
@@ -0,0 +1,17 @@
|
||||
shared enum EvolutionMethod {
|
||||
Level = 0,
|
||||
HighFriendship = 1,
|
||||
HighFriendshipTime = 2,
|
||||
KnownMove = 3,
|
||||
LocationBased = 4,
|
||||
TimeBased = 5,
|
||||
HoldsItem = 6,
|
||||
HoldsItemTime = 7,
|
||||
IsGenderAndLevel = 8,
|
||||
EvolutionItemUse = 9,
|
||||
EvolutionItemUseWithGender = 10,
|
||||
Trade = 11,
|
||||
TradeWithHeldItem = 12,
|
||||
TradeWithSpecificPokemon = 13,
|
||||
Custom = 14,
|
||||
}
|
||||
3
Scripts/Interfaces/EvolutionScript.as
Normal file
3
Scripts/Interfaces/EvolutionScript.as
Normal file
@@ -0,0 +1,3 @@
|
||||
shared abstract class EvolutionScript {
|
||||
void DoesEvolveFromLevelUp(bool &out, const EvolutionData@, const Pokemon@){};
|
||||
}
|
||||
@@ -8,7 +8,7 @@ shared interface Pokemon {
|
||||
bool Shiny { get const; }
|
||||
const Item@ HeldItem { get const; }
|
||||
bool HasHeldItem(const constString &in name) const;
|
||||
void SetHeldItem(const string &in name);
|
||||
void SetHeldItem(const constString &in name);
|
||||
void SetHeldItem(const Item@ item);
|
||||
uint CurrentHealth { get const; }
|
||||
const string& Nickname { get const; }
|
||||
|
||||
@@ -2,4 +2,5 @@ shared interface constString {
|
||||
bool opEquals(const constString &in) const;
|
||||
bool opEquals(const string &in) const;
|
||||
uint opImplConv();
|
||||
string opImplConv();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user