Skip to content
Mike Starr edited this page Feb 29, 2012 · 39 revisions

Units

BWAPI References:

Classes

Unit
UnitCommand
UnitType

Enumerations

UnitTypes
Unit Types
Terran Ground Units
Terran Air Units
Terran Buildings

Units

  • Units are the BWAPI base class for getting information from in-game Units (movable units (e.g. SCVs, marines), buildings, and resources).

  • The UnitType class is used to get information about a specific Unit type (e.g. velocity, size, damage).

  • UnitCommands are issued to Units via the Unit::IssueCommand function to control the unit.

Each Unit in the game has a UnitType, and a UnitType takes on a value from the UnitTypes enum.


SCV

Synopsis: Used to mine minerals (2 per cluster), collect gas, build, repair, scout

primaryPurpose: gatherMinerals(Mineral), gatherGas(Gas), create(Building), repair(Building)

secondaryPurpose: attack(Unit), scout


Marine

Synopsis: Basic attack/defense unit. Can be put into bunkers for defense. Attack both air and ground.

primaryPurpose: attack(Enemy), defend(Friendly)
secondaryPurpose: null


Firebat

Synopsis: Close-range, splash damage unit. Can hurt teammates. Concussive damage: only hurts "Small" units

primaryPurpose: attack(Enemy), defend(Friendly)
secondaryPurpose: null


Ghost

Synopsis: Useful against small units. Ability lockdown can halt mechanical enemies (e.g. freeze a dropship, siege tank, battlecruiser, or carrier). Can cloak for limited periods to prevent detection.

Used to guide Nukes to "ground zero" (assuming Nuke Silo && Nuke).

primaryPurpose: attack(Enemy), defend(Friendly)
secondaryPurpose: guideNuke(Nuke)


Vulture

Synopsis: base Factory unit. Only costs minerals. Grenade launcher => good against small units and some medium range. No air attacks. Can lay spider mines. Has 3 mines that can be set anywhere and do 125 splash damage.

primaryPurpose: attack(Enemy)
secondaryPurpose: layMine(Position)


Siege Tank

Synopsis: Heavy support (mobile), Artillary (siege). No air attack. Explosive damage.

primaryPurpose: attack(Enemy), siegeAttack(Enemy)
secondaryPurpose: null


Goliath

Synopsis: Strong against ground and air.

primaryPurpose: attack(Enemy)
secondaryPurpose:


Dropship

Synopsis: Has 8 slots for carrying units to a strategic location. Marines, Firebats, Medics, Ghosts, and SCVs take up one, Vultures and Goliaths take up two, and Tanks take up four.

primaryPurpose: transport(Set, Position)
secondaryPurpose:


Wraith

Synopsis: Fast air/ground attack. Cloaks. Used to "pester" enemy forces.

primaryPurpose: attack(Enemy)
secondaryPurpose:


Battlecruiser

Synopsis: Most powerful air unit. Long cooldown.

primaryPurpose: attack(Enemy)
secondaryPurpose:


Science Vessel

Synopsis: "Spell-casting unit". Increase friendly units hp, damage enemy "living" organisms, take away energy from other units/shields.

primaryPurpose: attack(Enemy), defend(Friendly)
secondaryPurpose: detect()


Medic

Synopsis: Heals all biological troops for Terran. Casts Heal automatically on nearby units.

primaryPurpose: heal() secondaryPurpose: opticalFlare()


Valkyrie

Synopsis: Air-to-air unit with splash damage.

primaryPurpose: attack(Enemy), defend(Friendly) secondaryPurpose:

References:

Terran Units

Brood War Units