public static boolean IsUnitInGroup(unit whichUnit, group whichGroup) { if (whichGroup.Contains(whichUnit)) { return(true); } else { return(false); } }
public static boolean IsUnit(unit whichUnit, unit whichSpecifiedUnit) { if (whichUnit == whichSpecifiedUnit) { return(true); } else { return(false); } }
public static boolean IsUnitOwnedByPlayer(unit whichUnit, player whichPlayer) { if (whichUnit.owner == whichPlayer) { return(true); } else { return(false); } }
public static boolean UnitHasItem(unit whichUnit, item whichItem) { if (whichUnit.slots.Contains(whichItem)) { return(true); } else { return(false); } }
public static boolean IsUnitInRangeLoc(unit whichUnit, location whichLocation, real distance) { real xs = whichUnit.x - whichLocation.x; real ys = whichUnit.y - whichLocation.y; real d = (real)Math.Sqrt(xs * xs + ys * ys); if (distance >= d) { return(true); } else { return(false); } }
public static boolean IsUnitInRangeXY(unit whichUnit, real x, real y, real distance) { real xs = whichUnit.x - x; real ys = whichUnit.y - y; real d = (real)Math.Sqrt(xs * xs + ys * ys); if (distance >= d) { return(true); } else { return(false); } }
public static @event TriggerRegisterFilterUnitEvent(trigger whichTrigger, unit whichUnit, unitevent whichEvent, boolexpr filter) { throw new NotImplementedException(); }
public static real WaygateGetDestinationY(unit waygate) { throw new NotImplementedException(); }
public static void AddResourceAmount(unit whichUnit, integer amount) { }
public static boolean IssueNeutralTargetOrderById(player forWhichPlayer, unit neutralStructure, integer unitId, widget target) { throw new NotImplementedException(); }
public static boolean IssueNeutralPointOrderById(player forWhichPlayer, unit neutralStructure, integer unitId, real x, real y) { throw new NotImplementedException(); }
public static void SetUnitPosition(unit whichUnit, real newX, real newY) { whichUnit.x = newX; whichUnit.y = newY; }
public static boolean IssuePointOrderById(unit whichUnit, integer order, real x, real y) { throw new NotImplementedException(); }
public static boolean IssuePointOrderLoc(unit whichUnit, @string order, location whichLocation) { throw new NotImplementedException(); }
public static boolean IssuePointOrder(unit whichUnit, @string order, real x, real y) { throw new NotImplementedException(); }
public static boolean IssueNeutralImmediateOrder(player forWhichPlayer, unit neutralStructure, @string unitToBuild) { throw new NotImplementedException(); }
public static boolean IssueNeutralImmediateOrderById(player forWhichPlayer, unit neutralStructure, integer unitId) { throw new NotImplementedException(); }
public static boolean IssuePointOrderByIdLoc(unit whichUnit, integer order, location whichLocation) { throw new NotImplementedException(); }
public static boolean IssueNeutralPointOrder(player forWhichPlayer, unit neutralStructure, @string unitToBuild, real x, real y) { throw new NotImplementedException(); }
public static void SetUnitY(unit whichUnit, real newY) { whichUnit.y = newY; }
public static boolean IssueNeutralTargetOrder(player forWhichPlayer, unit neutralStructure, @string unitToBuild, widget target) { throw new NotImplementedException(); }
public static boolean IssueTargetOrder(unit whichUnit, @string order, widget targetWidget) { throw new NotImplementedException(); }
public static integer GetUnitCurrentOrder(unit whichUnit) { throw new NotImplementedException(); }
public static boolean IssueInstantPointOrder(unit whichUnit, @string order, real x, real y, widget instantTargetWidget) { throw new NotImplementedException(); }
public static integer GetResourceAmount(unit whichUnit) { throw new NotImplementedException(); }
public static boolean IssueInstantTargetOrderById(unit whichUnit, integer order, widget targetWidget, widget instantTargetWidget) { throw new NotImplementedException(); }
public static @event TriggerRegisterUnitInRange(trigger whichTrigger, unit whichUnit, real range, boolexpr filter) { throw new NotImplementedException(); }
public static boolean IssueBuildOrder(unit whichPeon, @string unitToBuild, real x, real y) { throw new NotImplementedException(); }
public static boolean SaveUnitHandle(hashtable table, integer parentKey, integer childKey, unit whichUnit) { table.Add(parentKey.ToString("x8") + childKey.ToString("x8"), whichUnit); return(true); }
public static boolean IssueBuildOrderById(unit whichPeon, integer unitId, real x, real y) { throw new NotImplementedException(); }