Пример #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);
            }
Пример #2
0
 public Tree(int x, int y, TreeType type)
 {
     this.x    = x;
     this.y    = y;
     this.type = type;
 }
Пример #3
0
 public Tree(int x, int y, TreeType treetype)
 {
     X        = x;
     Y        = y;
     treeType = treetype;
 }