Player

Class

class pybrood.Player
getID() → int
getName() → str
getUnits() → Unitset
getRace() → Race
getType() → PlayerType
getForce() → Force
isAlly(player: Player) → bool
isEnemy(player: Player) → bool
isNeutral() → bool
getStartLocation() → Tuple[int, int]
isVictorious() → bool
isDefeated() → bool
leftGame() → bool
minerals() → int
gas() → int
gatheredMinerals() → int
gatheredGas() → int
repairedMinerals() → int
repairedGas() → int
refundedMinerals() → int
refundedGas() → int
spentMinerals() → int
spentGas() → int
supplyTotal(race: Race=Races.None) → int
supplyUsed(race: Race=Races.None) → int
allUnitCount(unit: UnitType=UnitTypes.AllUnits) → int
visibleUnitCount(unit: UnitType=UnitTypes.AllUnits) → int
completedUnitCount(unit: UnitType=UnitTypes.AllUnits) → int
incompleteUnitCount(unit: UnitType=UnitTypes.AllUnits) → int
deadUnitCount(unit: UnitType=UnitTypes.AllUnits) → int
killedUnitCount(unit: UnitType=UnitTypes.AllUnits) → int
getUpgradeLevel(upgrade: UpgradeType) → int
hasResearched(tech: TechType) → bool
isResearching(tech: TechType) → bool
isUpgrading(upgrade: UpgradeType) → bool
getColor() → Color
getTextColor() → str
maxEnergy(unit: UnitType) → int
topSpeed(unit: UnitType) → float
weaponMaxRange(weapon: WeaponType) → int
sightRange(unit: UnitType) → int
weaponDamageCooldown(unit: UnitType) → int
armor(unit: UnitType) → int
damage(wpn: WeaponType) → int
getUnitScore() → int
getKillScore() → int
getBuildingScore() → int
getRazingScore() → int
getCustomScore() → int
isObserver() → bool
getMaxUpgradeLevel(upgrade: UpgradeType) → int
isResearchAvailable(tech: TechType) → bool
isUnitAvailable(unit: UnitType) → bool
hasUnitTypeRequirement(unit: UnitType, amount: int=1) → bool