using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace mmoRL { public class Tile { public int id = 0; public Image image = new Image(" "); public string name = "a tile"; public bool solid = false; public Tile(int id) { this.id = id; switch (id) { case 1: //Grass this.image = new Image(".", ConsoleColor.DarkGreen); name = "grass"; break; case 2: //Dirt this.image = new Image(".", ConsoleColor.DarkYellow); name = "dirt"; break; case 3: //Water this.image = new Image("=", ConsoleColor.DarkBlue); this.solid = true; name = "water"; break; case 4: //Light grass this.image = new Image(".", ConsoleColor.Green); name = "grass"; break; case 5: //Sand this.image = new Image(".", ConsoleColor.Yellow); name = "sand"; break; case 6: //Rocky/dark this.image = new Image(".", ConsoleColor.Gray); name = "rocky ground"; break; case 7: //Lavastone this.image = new Image(".", ConsoleColor.DarkRed); name = "the ground"; break; case 8: //Light Water this.image = new Image("=", ConsoleColor.Blue); this.solid = true; name = "water"; break; case 9: //Mountain this.image = new Image("^", ConsoleColor.DarkGray); this.solid = true; name = "mountains"; break; } } public Tile(byte[] serialized) { } } }