public Color GetColor(AbsolutePosition pos) { if (Formation == null) { if (Items.ContainsKey(pos)) { return(Items[pos].Color); } return(Terrain.Color); } var creature = Formation.GetCreature(pos); if (creature == null) { if (Items.ContainsKey(pos)) { return(Items[pos].Color); } return(Terrain.Color); } return(creature.Color); }
public char GetSymbol(AbsolutePosition pos) { if (Formation == null) { if (Items.ContainsKey(pos)) { return(Items[pos].Symbol); } return(Terrain.Symbol); } var creature = Formation.GetCreature(pos); if (creature == null) { if (Items.ContainsKey(pos)) { return(Items[pos].Symbol); } return(Terrain.Symbol); } return(creature.Symbol); }