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