Beispiel #1
0
 public Edge(LocationPoint point1, LocationPoint point2)
 {
     connectingPoints = new LocationPoint[2];
     connectingPoints[0] = point1;
     connectingPoints[1] = point2;
     playerOwner = 0;
 }
Beispiel #2
0
 public bool PointIsNeighboring(LocationPoint point)
 {
     foreach (Edge edge in Edges)
     {
         if (edge.ConnectingPoints.Contains(point))
             return true;
     }
     return false;
 }