public class UnitFactory
extends java.lang.Object
Constructor and Description |
---|
UnitFactory() |
Modifier and Type | Method and Description |
---|---|
UnitImpl |
createUnit(int unitId,
UnitType unitType,
int timeSpotted)
Creates a unit for given ID and type.
|
protected BattleCruiser |
getBattleCruiser(int unitId,
int timeSpotted) |
protected Dropship |
getDropship(int unitId,
int timeSpotted) |
protected Firebat |
getFirebat(int unitId,
int timeSpotted) |
protected Ghost |
getGhost(int unitId,
int timeSpotted) |
protected Goliath |
getGoliath(int unitId,
int timeSpotted) |
protected Marine |
getMarine(int unitId,
int timeSpotted) |
protected Medic |
getMedic(int unitId,
int timeSpotted) |
protected MineralPatch |
getMineralPatch(int unitId,
int timeSpotted) |
protected Refinery |
getRefinery(UnitType unitType,
int timeSpotted) |
protected ScienceVessel |
getScienceVessel(int unitId,
int timeSpotted) |
protected SCV |
getSCV(int unitId,
int timeSpotted) |
protected SiegeTank |
getSiegeTank(int unitId,
int timeSpotted,
boolean sieged) |
protected Valkyrie |
getValkyrie(int unitId,
int timeSpotted) |
protected VespeneGeyser |
getVespeneGeyser(int unitId,
int timeSpotted) |
protected Vulture |
getVulture(int unitId,
int timeSpotted) |
protected Wraith |
getWraith(int unitId,
int timeSpotted) |
void |
setBW(BW bw) |
public final void setBW(BW bw)
protected MineralPatch getMineralPatch(int unitId, int timeSpotted)
protected VespeneGeyser getVespeneGeyser(int unitId, int timeSpotted)
protected SCV getSCV(int unitId, int timeSpotted)
protected Marine getMarine(int unitId, int timeSpotted)
protected Medic getMedic(int unitId, int timeSpotted)
protected Firebat getFirebat(int unitId, int timeSpotted)
protected Ghost getGhost(int unitId, int timeSpotted)
protected Vulture getVulture(int unitId, int timeSpotted)
protected Goliath getGoliath(int unitId, int timeSpotted)
protected SiegeTank getSiegeTank(int unitId, int timeSpotted, boolean sieged)
protected Wraith getWraith(int unitId, int timeSpotted)
protected Dropship getDropship(int unitId, int timeSpotted)
protected Valkyrie getValkyrie(int unitId, int timeSpotted)
protected BattleCruiser getBattleCruiser(int unitId, int timeSpotted)
protected ScienceVessel getScienceVessel(int unitId, int timeSpotted)