Crate rsbwapi

Source

Re-exports§

pub use aimodule::AiModule;
pub use bullet::Bullet;
pub use bullet::BulletType;
pub use force::Force;
pub use game::Game;
pub use player::Player;
pub use player::PlayerId;
pub use unit::Unit;
pub use unit::UnitId;
pub use crate::types::*;

Modules§

aimodule
bullet
can_do
Helper traits and impls for the various can_xyz methods. BWAPI uses multiple overloaded methods, which is emulated using traits. Therefore, traits in here are usually implemented for bool and for one or more tuples. The bool in this case is the parameter checkCommandibility. Be warned, all the checking API is not stable, as it is mostly a rough conversion from C++
client
command
force
game
player
predicate
region
sma
types
unit

Structs§

ScaledPosition
Vector2D

Constants§

ORIGIN
WALK_POSITION_4_DIR
WALK_POSITION_8_DIR

Traits§

PositionIndexed
PositionValidator

Functions§

dir_4
dir_8
start

Type Aliases§

CoordinateType
DamageType
Error
ExplosionType
Flag
Key
MouseButton
Order
Position
PositionTuple
Race
TechType
TilePosition
UnitCommand
UnitCommandType
UnitSizeType
UnitType
UpgradeType
WalkPosition
WeaponType