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;
 }