source: trunk/game/scripts/objects/doors.py @ 373

Revision 373, 1.2 KB checked in by saritor, 10 years ago (diff)

Ticket #151: Patch by saritor.

  • Modifies door object calling arguements to properly use target position data passed with map xml file.
  • fixes[s:trac, t:151]
  • Property svn:eol-style set to native
Line 
1#!/usr/bin/python
2
3#   This file is part of PARPG.
4
5#   PARPG is free software: you can redistribute it and/or modify
6#   it under the terms of the GNU General Public License as published by
7#   the Free Software Foundation, either version 3 of the License, or
8#   (at your option) any later version.
9
10#   PARPG is distributed in the hope that it will be useful,
11#   but WITHOUT ANY WARRANTY; without even the implied warranty of
12#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13#   GNU General Public License for more details.
14
15#   You should have received a copy of the GNU General Public License
16#   along with PARPG.  If not, see <http://www.gnu.org/licenses/>.
17
18"""Containes classes defining concrete door game objects."""
19
20__all__ = ["ShantyDoor",]
21
22from composed import Door
23
24class ShantyDoor(Door):
25    def __init__ (self, ID, name = 'Shanty Door', \
26            text = 'A door', gfx = 'shanty-door', target_map_name = 'my-map', \
27            target_map = 'map.xml', target_x = 0.0, target_y = 0.0,\
28            **kwargs):
29        Door.__init__(self, ID = ID, name = name, text = text, gfx = gfx, \
30            target_map_name = target_map_name, target_map = target_map, \
31            target_x = target_x, target_y = target_y, **kwargs)
32
Note: See TracBrowser for help on using the repository browser.