void Move(Thing thing, string direction) { switch (direction) { case "up": thing.Position.Y -= 1; Render(); break; case "down": thing.Position.Y += 1; Render(); break; case "left": thing.Position.X -= 1; Render(); break; case "right": thing.Position.X += 1; Render(); break; } }
private string Coordinates(Thing thing) { return "{X=" + (thing.Position.X).ToString() + "," + "Y=" + (thing.Position.Y).ToString() + "}"; }