예제 #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);
        }