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));
        }
Exemple #2
0
 public Point(int x, int y, PointIcon pointIcon)
 {
     this.x         = x;
     this.y         = y;
     this.pointIcon = pointIcon;
 }
Exemple #3
0
 public Point(int x, int y, PointIcon icon)
 {
     this.x    = x;
     this.y    = y;
     this.icon = icon;
 }