Esempio n. 1
0
 public Unit(SWIG.BWAPI.Unit u)
 {
     theUnit = u;
     Type = u.getType().getName();
     Id = u.getID();
     Alive = true;
     theTarget = null;
 }
Esempio n. 2
0
 public void onUnitRenegade(long p_unit)
 {
     SWIG.BWAPI.Unit unit = BWAPI.Helper.NewUnit(new IntPtr(p_unit));
     if (realBot != null)
     {
         realBot.onUnitRenegade(unit);
     }
 }
Esempio n. 3
0
 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);
     }
 }
Esempio n. 4
0
        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);
			}
		}
Esempio n. 5
0
 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);                
     }
 }
Esempio n. 6
0
 public Unit(SWIG.BWAPI.Unit u)
 {
     theUnit   = u;
     theTarget = null;
 }
Esempio n. 7
0
		public Unit(SWIG.BWAPI.Unit u)
		{
			theUnit = u;
			theTarget = null;
		}