[][src]Struct bwapi_wrapper::BWAPI_PlayerData

#[repr(C)]pub struct BWAPI_PlayerData {
    pub name: [c_char; 25],
    pub race: c_int,
    pub type_: c_int,
    pub force: c_int,
    pub isAlly: [bool; 12],
    pub isEnemy: [bool; 12],
    pub isNeutral: bool,
    pub startLocationX: c_int,
    pub startLocationY: c_int,
    pub isVictorious: bool,
    pub isDefeated: bool,
    pub leftGame: bool,
    pub isParticipating: bool,
    pub minerals: c_int,
    pub gas: c_int,
    pub gatheredMinerals: c_int,
    pub gatheredGas: c_int,
    pub repairedMinerals: c_int,
    pub repairedGas: c_int,
    pub refundedMinerals: c_int,
    pub refundedGas: c_int,
    pub supplyTotal: [c_int; 3],
    pub supplyUsed: [c_int; 3],
    pub allUnitCount: [c_int; 234],
    pub visibleUnitCount: [c_int; 234],
    pub completedUnitCount: [c_int; 234],
    pub deadUnitCount: [c_int; 234],
    pub killedUnitCount: [c_int; 234],
    pub upgradeLevel: [c_int; 63],
    pub hasResearched: [bool; 47],
    pub isResearching: [bool; 47],
    pub isUpgrading: [bool; 63],
    pub color: c_int,
    pub totalUnitScore: c_int,
    pub totalKillScore: c_int,
    pub totalBuildingScore: c_int,
    pub totalRazingScore: c_int,
    pub customScore: c_int,
    pub maxUpgradeLevel: [c_int; 63],
    pub isResearchAvailable: [bool; 47],
    pub isUnitAvailable: [bool; 234],
}

Fields

name: [c_char; 25]race: c_inttype_: c_intforce: c_intisAlly: [bool; 12]isEnemy: [bool; 12]isNeutral: boolstartLocationX: c_intstartLocationY: c_intisVictorious: boolisDefeated: boolleftGame: boolisParticipating: boolminerals: c_intgas: c_intgatheredMinerals: c_intgatheredGas: c_intrepairedMinerals: c_intrepairedGas: c_intrefundedMinerals: c_intrefundedGas: c_intsupplyTotal: [c_int; 3]supplyUsed: [c_int; 3]allUnitCount: [c_int; 234]visibleUnitCount: [c_int; 234]completedUnitCount: [c_int; 234]deadUnitCount: [c_int; 234]killedUnitCount: [c_int; 234]upgradeLevel: [c_int; 63]hasResearched: [bool; 47]isResearching: [bool; 47]isUpgrading: [bool; 63]color: c_inttotalUnitScore: c_inttotalKillScore: c_inttotalBuildingScore: c_inttotalRazingScore: c_intcustomScore: c_intmaxUpgradeLevel: [c_int; 63]isResearchAvailable: [bool; 47]isUnitAvailable: [bool; 234]

Trait Implementations

impl Clone for BWAPI_PlayerData[src]

impl Copy for BWAPI_PlayerData[src]

impl Default for BWAPI_PlayerData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.