示例#1
0
        private static Map CreateDummyMap()
        {
            var table = new Table<Tile>();
            table[0, 0] = new Tile("Tile0303", false);
            table[0, 1] = new Tile("Tile0304", true);
            table[0, 2] = new Tile("Tile0305", false);
            table[1, 0] = new Tile("Tile0403", false);
            table[1, 1] = new Tile("Tile0404", true);
            table[1, 2] = new Tile("Tile0405", false);
            table[2, 0] = new Tile("Tile0503", false);
            table[2, 1] = new Tile("Tile0504", false);
            table[2, 2] = new Tile("Tile0505", false);

            return new Map(table, new TilePosition(1, 0));
        }
        private Map CreateMap()
        {
            var table = new Table<Tile>();
            table[0, 0] = new Tile("", true);
            table[1, 0] = new Tile("", false);
            table[0, 1] = new Tile("", false);
            table[1, 1] = new Tile("", true);
            table[2, 0] = new Tile("", false);
            table[2, 1] = new Tile("", false);
            table[2, 2] = new Tile("", false);
            table[0, 2] = new Tile("", false);
            table[1, 2] = new Tile("", false);

            return new Map(table, new TilePosition(0, 0));
        }