/// <summary> /// Removes a charcters entry in the VisualPoints dictionary. /// </summary> /// <param name="charName"></param> public void RemoveVisualPoints(string charName) { // maybe the character has died or we just no longer wnat to see his path any more if (VisualPoints.ContainsKey(charName)) { VisualPoints.Remove(charName); } }
/// <summary> /// Set a list of points that will be visualized. /// </summary> /// <param name="charName"></param> /// <param name="points"></param> public void SetVisualPoints(string charName, List <Tile> points) { // A character changed there path, so we need to update the new path if (VisualPoints.ContainsKey(charName)) { VisualPoints[charName] = points; return; } VisualPoints.Add(charName, points); }