private void PlantTree(int idx, int x, int y, string name, string color, object texture) { TreeType type = TreeFactory.GetTreeType(name, color, texture); trees[idx] = new Tree(x, y, type); }
public Tree(int x, int y, TreeType type) { this.x = x; this.y = y; this.type = type; }
public Tree(int x, int y, TreeType treetype) { X = x; Y = y; treeType = treetype; }