// Visualize only text objects public void VisualizeText(TextObject obj) { Console.SetCursorPosition(obj.Position.Col, obj.Position.Row); Console.ForegroundColor = obj.Color; Console.Write(obj); }
private void AddPoints(TextObject obj) { this.points = obj as Points; }
private void AddTextObject(TextObject obj) { this.textObjects.Add(obj); if (obj is Points) { this.AddPoints(obj); } else if (obj is CatsNumber) { this.AddCatsNumber(obj); } }
private void AddCatsNumber(TextObject obj) { this.catsNumber = obj as CatsNumber; }