public void setVType(int x, int y, VicinityType type) { KeyPoint kp = new KeyPoint(x, y); int hc = kp.GetHashCode(); if (vicinities.ContainsKey(hc)) { this.vicinities[hc].type = type; Cell cell = (Cell)this.GetCell(x, y); this.SetCellProperties(x, y, type.transparent, type.walkable, cell.IsExplored); this.dirty = true; } }
public CP437Mapping(int value, string colorFG, string colorBG, string displayName, VicinityType mapping) : base(value, displayName) { this.colorBG = colorBG; this.mapping = mapping; CP437Mapping.mapList.Add(this); }
public void setType(VicinityType type) { this.type = type; }
public Vicinity(int x, int y, VicinityType type) { this.x = x; this.y = y; this.type = type; }