예제 #1
0
파일: Edge.cs 프로젝트: Lepercon5000/socsim
 public Edge(LocationPoint point1, LocationPoint point2)
 {
     connectingPoints = new LocationPoint[2];
     connectingPoints[0] = point1;
     connectingPoints[1] = point2;
     playerOwner = 0;
 }
예제 #2
0
 public bool PointIsNeighboring(LocationPoint point)
 {
     foreach (Edge edge in Edges)
     {
         if (edge.ConnectingPoints.Contains(point))
             return true;
     }
     return false;
 }