From 7636651dad79a23bb774e4bc065438483d62849b Mon Sep 17 00:00:00 2001 From: Paul Merrill Date: Fri, 13 Apr 2012 05:25:12 -0700 Subject: [PATCH] Area.tiles => Area.tile --- src/area.cpp | 2 +- src/testing/areas/g02_open_chest.py | 2 +- src/testing/areas/house_switch.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/area.cpp b/src/area.cpp index 05a4151..c53ef5a 100644 --- a/src/area.cpp +++ b/src/area.cpp @@ -480,7 +480,7 @@ void exportArea() .add_property("descriptor", &Area::getDescriptor) .add_property("dimensions", &Area::pyGetDimensions) .def("redraw", &Area::requestRedraw) - .def("tiles", + .def("tile", static_cast (&Area::getTile), return_value_policy()) diff --git a/src/testing/areas/g02_open_chest.py b/src/testing/areas/g02_open_chest.py index c469f12..6cd85ef 100644 --- a/src/testing/areas/g02_open_chest.py +++ b/src/testing/areas/g02_open_chest.py @@ -13,7 +13,7 @@ def toggle_music(): # Open the chest! if not opened_the_chest: opened_the_chest = True - tile = Area.tiles(5, 2, -0.05) # closed chest + tile = Area.tile(5, 2, -0.05) # closed chest tile2 = tile.offset(0, -1) # above the closed chest tile.type = Area.get_tile_type(367) # change to open chest, button half tile2.type = Area.get_tile_type(360) # change to open chest, top half diff --git a/src/testing/areas/house_switch.py b/src/testing/areas/house_switch.py index 745775a..daaf436 100644 --- a/src/testing/areas/house_switch.py +++ b/src/testing/areas/house_switch.py @@ -2,11 +2,11 @@ if unlocked_the_door == False: unlocked_the_door = True - tile = Area.tiles(4, 0, 0.0) # closed exit on north wall, property layer + tile = Area.tile(4, 0, 0.0) # closed exit on north wall, property layer tile.exit = new_exit("areas/secret_room.tmx", 4, 5, 0.0) tile.flags.nowalk = False - tile = Area.tiles(4, 0, -0.2) # closed exit on north wall, graphics layer + tile = Area.tile(4, 0, -0.2) # closed exit on north wall, graphics layer tile.type = Area.get_tile_type(66) # change to open exit Area.redraw() -- 2.11.4.GIT