예제 #1
0
        public PointIcon GetPointIcon(PointType type)
        {
            // key -> value
            // PointType -> PointIcon

            if (!icons.ContainsKey(type))
            {
                var icon = new PointIcon(type, null);
                // phisical icon image, hospital.jpg, etc.
                icons.Add(type, icon);
            }

            return(icons.GetValueOrDefault(type));
        }
예제 #2
0
 public Point(int x, int y, PointIcon pointIcon)
 {
     this.x         = x;
     this.y         = y;
     this.pointIcon = pointIcon;
 }
예제 #3
0
 public Point(int x, int y, PointIcon icon)
 {
     this.x    = x;
     this.y    = y;
     this.icon = icon;
 }