示例#1
0
        public Tiles getMountain()
        {
            Tiles t;

            if (!mapTiles.ContainsKey("mountain"))
            {
                t = new MountainImpl();
                mapTiles.Add("mountain", t);
            }
            else
            {
                t = mapTiles["mountain"];
            }
            return t;
        }
示例#2
0
        public Tiles getMountain()
        {
            Tiles t;

            if (!mapTiles.ContainsKey("mountain"))
            {
                t = new MountainImpl();
                mapTiles.Add("mountain", t);
            }
            else
            {
                t = mapTiles["mountain"];
            }
            return(t);
        }