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