/// <summary> /// Ermittelt den Richtungsunterscheid zwischen zwei Spielelementen /// </summary> /// <param name="objekt1">Element 1</param> /// <param name="objekt2">Element 2</param> /// <returns>Entfernung in Gradschritten</returns> public static int BestimmeRichtung(CoreAnt objekt1, CoreAnt objekt2) { return(CoreCoordinate.BestimmeRichtung(objekt1, objekt2)); }
/// <summary> /// Bestimmt die Entfernung zwischen zwei Spielelementen /// </summary> /// <param name="objekt1">Element 1</param> /// <param name="objekt2">Element 2</param> /// <returns>Entfernung in Schritten</returns> public static int BestimmeEntfernung(CoreAnt objekt1, Spielobjekt objekt2) { return(CoreCoordinate.BestimmeEntfernung(objekt1, objekt2.Element)); }
/// <summary> /// Ermittelt den Richtungsunterscheid zwischen zwei Spielelementen /// </summary> /// <param name="objekt1">Element 1</param> /// <param name="objekt2">Element 2</param> /// <returns>Entfernung in Gradschritten</returns> public static int BestimmeRichtung(Spielobjekt objekt1, CoreAnt objekt2) { return(CoreCoordinate.BestimmeRichtung(objekt1.Element, objekt2)); }
/// <summary> /// Gives the direction from object 1 to object 2 /// </summary> /// <param name="a">object 1</param> /// <param name="b">object 2</param> /// <returns>direction</returns> public static int GetDegreesBetween(CoreAnt a, Item b) { return(CoreCoordinate.BestimmeRichtung(a, b.Baseitem)); }
/// <summary> /// Gives the direction from object 1 to object 2 /// </summary> /// <param name="a">object 1</param> /// <param name="b">object 2</param> /// <returns>direction</returns> public static int GetDegreesBetween(Item a, CoreAnt b) { return(CoreCoordinate.BestimmeRichtung(a.Baseitem, b)); }
/// <summary> /// Gives the distance between the to given objects /// </summary> /// <param name="a">object 1</param> /// <param name="b">object 2</param> /// <returns>Distance between</returns> public static int GetDistanceBetween(ICoordinate a, ICoordinate b) { return(CoreCoordinate.BestimmeEntfernung(a, b)); }
/// <summary> /// Gives the distance between the to given objects /// </summary> /// <param name="a">object 1</param> /// <param name="b">object 2</param> /// <returns>Distance between</returns> public static int GetDistanceBetween(Item a, CoreAnt b) { return(CoreCoordinate.BestimmeEntfernung(a.Baseitem, b)); }
/// <summary> /// Gives the distance between the to given objects /// </summary> /// <param name="a">object 1</param> /// <param name="b">object 2</param> /// <returns>Distance between</returns> public static int GetDistanceBetween(CoreAnt a, Item b) { return(CoreCoordinate.BestimmeEntfernung(a, b.Baseitem)); }
/// <summary> /// Gives the direction from object 1 to object 2 /// </summary> /// <param name="a">object 1</param> /// <param name="b">object 2</param> /// <returns>direction</returns> public static int GetDegreesBetween(ICoordinate a, ICoordinate b) { return(CoreCoordinate.BestimmeRichtung(a, b)); }
public Marker(MarkerType markerType, CoreCoordinate ort) { this.markerInformation = MarkerInformationType.Ort; this.ort = ort; this.markerType = markerType; }