Exemple #1
0
            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;
                }
            }
Exemple #2
0
 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);
 }
Exemple #3
0
 public void setType(VicinityType type)
 {
     this.type = type;
 }
Exemple #4
0
 public Vicinity(int x, int y, VicinityType type)
 {
     this.x    = x;
     this.y    = y;
     this.type = type;
 }