Esempio n. 1
0
            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);
            }
Esempio n. 2
0
 public Tree(int x, int y, TreeType type)
 {
     this.x    = x;
     this.y    = y;
     this.type = type;
 }
Esempio n. 3
0
 public Tree(int x, int y, TreeType treetype)
 {
     X        = x;
     Y        = y;
     treeType = treetype;
 }