public Unit(SWIG.BWAPI.Unit u) { theUnit = u; Type = u.getType().getName(); Id = u.getID(); Alive = true; theTarget = null; }
public void onUnitRenegade(long p_unit) { SWIG.BWAPI.Unit unit = BWAPI.Helper.NewUnit(new IntPtr(p_unit)); if (realBot != null) { realBot.onUnitRenegade(unit); } }
public void Attack(SWIG.BWAPI.Unit t) { if (t == null && theTarget != null) { theUnit.stop(); theTarget = null; } else if (t != null && t != theTarget) { theTarget = t; theUnit.attack(theTarget); } }
public void Attack(SWIG.BWAPI.Unit t) { if (t == null && theTarget != null) { theUnit.stop(); theTarget = null; } else if (t != null && t != theTarget) { theTarget = t; theUnit.attackUnit(theTarget); } }
public void Gather(SWIG.BWAPI.Unit t) { if (t == null && theTarget != null) { theUnit.stop(); theTarget = null; } else if (t != null) { theTarget = t; theUnit.gather(theTarget); } }
public Unit(SWIG.BWAPI.Unit u) { theUnit = u; theTarget = null; }