| 1 | # |
| 2 | # (C) Copyright 2001 Alexandre Courbot <[email protected]> |
| 3 | # Part of the Adonthell Project http://adonthell.linuxgames.com |
| 4 | # |
| 5 | # This program is free software; you can redistribute it and/or modify |
| 6 | # it under the terms of the GNU General Public License. |
| 7 | # This program is distributed in the hope that it will be useful, |
| 8 | # but WITHOUT ANY WARRANTY. |
| 9 | # |
| 10 | # See the COPYING file for more details |
| 11 | # |
| 12 | |
| 13 | # -- Map Event to open / close the inn door. |
| 14 | |
| 15 | import adonthell |
| 16 | |
| 17 | class open_inn_door(object): |
| 18 | |
| 19 | def __init__ (self, eventinstance): |
| 20 | pass |
| 21 | |
| 22 | def run (self, submap, x, y, dir, name): |
| 23 | adonthell.gamedata_engine ().get_landmap ().get_mapobject (0).\ |
| 24 | get_animation (0).next_frame () |