Beispiel #1
0
 public static boolean IsUnitInGroup(unit whichUnit, group whichGroup)
 {
     if (whichGroup.Contains(whichUnit))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Beispiel #2
0
 public static boolean IsUnit(unit whichUnit, unit whichSpecifiedUnit)
 {
     if (whichUnit == whichSpecifiedUnit)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Beispiel #3
0
 public static boolean IsUnitOwnedByPlayer(unit whichUnit, player whichPlayer)
 {
     if (whichUnit.owner == whichPlayer)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Beispiel #4
0
 public static boolean UnitHasItem(unit whichUnit, item whichItem)
 {
     if (whichUnit.slots.Contains(whichItem))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Beispiel #5
0
        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);
            }
        }
Beispiel #6
0
        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();
 }
Beispiel #8
0
 public static real WaygateGetDestinationY(unit waygate)
 {
     throw new NotImplementedException();
 }
Beispiel #9
0
 public static void AddResourceAmount(unit whichUnit, integer amount)
 {
 }
Beispiel #10
0
 public static boolean IssueNeutralTargetOrderById(player forWhichPlayer, unit neutralStructure, integer unitId, widget target)
 {
     throw new NotImplementedException();
 }
Beispiel #11
0
 public static boolean IssueNeutralPointOrderById(player forWhichPlayer, unit neutralStructure, integer unitId, real x, real y)
 {
     throw new NotImplementedException();
 }
Beispiel #12
0
 public static void SetUnitPosition(unit whichUnit, real newX, real newY)
 {
     whichUnit.x = newX;
     whichUnit.y = newY;
 }
Beispiel #13
0
 public static boolean IssuePointOrderById(unit whichUnit, integer order, real x, real y)
 {
     throw new NotImplementedException();
 }
Beispiel #14
0
 public static boolean IssuePointOrderLoc(unit whichUnit, @string order, location whichLocation)
 {
     throw new NotImplementedException();
 }
Beispiel #15
0
 public static boolean IssuePointOrder(unit whichUnit, @string order, real x, real y)
 {
     throw new NotImplementedException();
 }
Beispiel #16
0
 public static boolean IssueNeutralImmediateOrder(player forWhichPlayer, unit neutralStructure, @string unitToBuild)
 {
     throw new NotImplementedException();
 }
Beispiel #17
0
 public static boolean IssueNeutralImmediateOrderById(player forWhichPlayer, unit neutralStructure, integer unitId)
 {
     throw new NotImplementedException();
 }
Beispiel #18
0
 public static boolean IssuePointOrderByIdLoc(unit whichUnit, integer order, location whichLocation)
 {
     throw new NotImplementedException();
 }
Beispiel #19
0
 public static boolean IssueNeutralPointOrder(player forWhichPlayer, unit neutralStructure, @string unitToBuild, real x, real y)
 {
     throw new NotImplementedException();
 }
Beispiel #20
0
 public static void SetUnitY(unit whichUnit, real newY)
 {
     whichUnit.y = newY;
 }
Beispiel #21
0
 public static boolean IssueNeutralTargetOrder(player forWhichPlayer, unit neutralStructure, @string unitToBuild, widget target)
 {
     throw new NotImplementedException();
 }
Beispiel #22
0
 public static boolean IssueTargetOrder(unit whichUnit, @string order, widget targetWidget)
 {
     throw new NotImplementedException();
 }
Beispiel #23
0
 public static integer GetUnitCurrentOrder(unit whichUnit)
 {
     throw new NotImplementedException();
 }
Beispiel #24
0
 public static boolean IssueInstantPointOrder(unit whichUnit, @string order, real x, real y, widget instantTargetWidget)
 {
     throw new NotImplementedException();
 }
Beispiel #25
0
 public static integer GetResourceAmount(unit whichUnit)
 {
     throw new NotImplementedException();
 }
Beispiel #26
0
 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();
 }
Beispiel #28
0
 public static boolean IssueBuildOrder(unit whichPeon, @string unitToBuild, real x, real y)
 {
     throw new NotImplementedException();
 }
Beispiel #29
0
 public static boolean SaveUnitHandle(hashtable table, integer parentKey, integer childKey, unit whichUnit)
 {
     table.Add(parentKey.ToString("x8") + childKey.ToString("x8"), whichUnit);
     return(true);
 }
Beispiel #30
0
 public static boolean IssueBuildOrderById(unit whichPeon, integer unitId, real x, real y)
 {
     throw new NotImplementedException();
 }