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);
     }
 }