Esempio n. 1
0
 /// <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));
 }
Esempio n. 2
0
 /// <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));
 }
Esempio n. 3
0
 /// <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));
 }
Esempio n. 4
0
 /// <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));
 }
Esempio n. 5
0
 /// <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));
 }
Esempio n. 6
0
 /// <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));
 }
Esempio n. 7
0
 /// <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));
 }
Esempio n. 8
0
 /// <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));
 }
Esempio n. 9
0
 /// <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));
 }
Esempio n. 10
0
 public Marker(MarkerType markerType, CoreCoordinate ort)
 {
     this.markerInformation = MarkerInformationType.Ort;
     this.ort        = ort;
     this.markerType = markerType;
 }