Crate battler

Crate battler 

Source

Re-exports§

pub use battle::BattleType;
pub use battle::CoreBattleEngineOptions;
pub use battle::CoreBattleEngineRandomizeBaseDamage;
pub use battle::CoreBattleEngineSpeedSortTieResolution;
pub use battle::CoreBattleOptions;
pub use battle::FieldData;
pub use battle::FieldEnvironment;
pub use battle::LearnMoveRequest;
pub use battle::MonBattleData;
pub use battle::MonLearnMoveRequest;
pub use battle::MonMoveRequest;
pub use battle::MonMoveSlotData;
pub use battle::MonPersistentMoveData;
pub use battle::MonPositionDetails;
pub use battle::MonSummaryData;
pub use battle::PlayerBattleData;
pub use battle::PlayerData;
pub use battle::PlayerDex;
pub use battle::PlayerOptions;
pub use battle::PlayerType;
pub use battle::PublicCoreBattle;
pub use battle::Request;
pub use battle::RequestType;
pub use battle::SideData;
pub use battle::SwitchRequest;
pub use battle::TeamPreviewRequest;
pub use battle::TimeOfDay;
pub use battle::TurnRequest;
pub use battle::WildEncounterType;
pub use battle::WildPlayerOptions;
pub use config::FormatData;
pub use dex::AbilityDex;
pub use dex::ClauseDex;
pub use dex::ConditionDex;
pub use dex::Dex;
pub use dex::ItemDex;
pub use dex::MoveDex;
pub use dex::ResourceDex;
pub use dex::SingleValueDex;
pub use dex::SpeciesDex;
pub use effect::fxlang::Callback;
pub use effect::fxlang::CallbackInput;
pub use effect::fxlang::Callbacks;
pub use effect::fxlang::ConditionAttributes;
pub use effect::fxlang::Effect;
pub use effect::fxlang::EffectAttributes;
pub use effect::fxlang::LocalData;
pub use effect::fxlang::Program;
pub use effect::fxlang::ProgramWithPriority;
pub use error::BorrowFailedError;
pub use error::ConvertError;
pub use error::GeneralError;
pub use error::IntegerOverflowError;
pub use error::NotFoundError;
pub use error::ValidationError;
pub use error::WrapError;
pub use error::WrapOptionError;
pub use error::WrapResultError;
pub use error::borrow_failed_error;
pub use error::general_error;
pub use error::integer_overflow_error;
pub use error::not_found_error;
pub use teams::BagData;
pub use teams::MonData;
pub use teams::MonPersistentBattleData;
pub use teams::TeamData;

Modules§

abilities
battle
common
conditions
config
dex
effect
error
items
log
mons
moves
teams

Macros§

battle_log_entry
Constructs a UncommittedBattleLogEntry to be added to the BattleLog.

Structs§

AbilityData
Data about a particular ability.
BoostOrderIterator
Iterator type for iterating over Boosts in a consistent order.
BoostTable
A full boost table.
BoostTableEntries
Iterator type for iterating over non-zero boosts in a BoostTable (or similar container) in a stable order.
ClauseData
Data for an individual clause.
ConditionData
Data about a particular condition.
EventData
Data for a particular event, which is a special giveaway of some Mon.
EvolutionData
Details and conditions for one species to evolve into another.
FlingData
Data for what happens when “Fling” is used with this item.
Fraction
A fraction, usable in calculations.
HitEffect
The effect of being hit by a move.
Id
An ID for a resource.
ItemData
Data about a particular item.
JudgmentData
Data for what happens when “Judgment” is used with this item.
LocalDataStore
An implementation of DataStore that reads all data locally from disk.
MaxMoveData
Data about how a move affects Max Moves.
MoveData
Data about a particular move.
MultiAttackData
Data for what happens when “Multi-Attack” is used with this item.
NaturalGiftData
Data for what happens when “Natural Gift” is used with this item.
SecondaryEffectData
Data about a secondary effect that occurs after a move is used.
SpecialItemData
Data for special item effects; namely, item data associated with individual moves.
SpeciesData
Data about a particular species.
StatTable
A full stat table.
StatTableEntries
Iterator over the entries of a StatTable.
TechnoBlastData
Data for what happens when “Techno Blast” is used with this item.
TypeChart
A type chart, which contains all type effectiveness information for types against other types and effects.

Enums§

AbilityFlag
Ability flags, which categorize abilities for miscellaneous behavior (such as bans or side effects).
Accuracy
The base accuracy of a move.
Boost
A single stat value that can be boosted.
ClauseValueType
The type of a clause value.
Color
A defined enumeration of species colors.
ConditionType
The type of a condition.
EvolutionMethod
Common evolution methods.
Gender
The gender of a specific Mon.
ItemFlag
Item flags, which categorize items for miscellaneous behavior (such as bans or side effects).
ItemInput
The acceptable target of an item.
ItemTarget
The acceptable target of an item.
LevelingRate
Leveling rate, which determines how much experience is required for a species to level up.
MonOverride
The Mon to use for stat calculations on a move.
MoveCategory
The category of a move.
MoveFlag
Move flags, which categorize moves for miscellaneous behavior (such as bans or side effects).
MoveSource
The source of a move, which details how a species can learn a move in their learnset.
MoveTarget
The acceptable target(s) of a move.
MultihitType
The number of hits done by a multihit move.
Nature
A Mon’s nature, which boosts and drops particular stat values.
OhkoType
The type of one-hit KO dealt by the move.
Rule
A single rule that must be validated before a battle starts.
SelfDestructType
How the user self destructs after a move.
ShinyChance
The chance that a Mon is shiny.
SpeciesFlag
Species flags, which categorize species for miscellaneous behavior (such as bans or side effects).
Stat
A single stat value.
SwitchType
The type of user switch performed when using a move.
Type
The type of a species, which determines its weaknesses and resistances.
TypeEffectiveness
Type effectiveness of one type against another.

Traits§

ContainsOptionalBoosts
Trait for getting a boosted stat from a container.
DataStore
Collection of tables for all resource data.
DataStoreByName
An extension of DataStore for looking up resources by name.
FractionInteger
An integer type that can be used as the inner type of Fraction.
Identifiable
A trait that provides a common way of identifying resources.

Functions§

deserialize_aliases
Converts SerializedAliases into Aliases.

Type Aliases§

Aliases
Map of one ID to another.
LearnSet
A species learnset, which maps move names to how they are learned.
PartialStatTable
A table of stat values.
SerializedAliases
A user-defined set of aliases.
SerializedRuleSet
A user-defined set of rules.
StatMap
A map of values for each stat.
TypeTable
A type table, which contains type effectiveness information for types against some other value.