diff options
Diffstat (limited to 'src/mapdata.py')
-rw-r--r-- | src/mapdata.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mapdata.py b/src/mapdata.py index a50c98e..013e308 100644 --- a/src/mapdata.py +++ b/src/mapdata.py @@ -138,7 +138,6 @@ class KPDoodad(object): self.size = [pixmap.width(), pixmap.height()] - class KPDoodadLayer(KPLayer): def __repr__(self): return "<KPDoodadLayer %r>" % self.name @@ -154,13 +153,12 @@ class KPDoodadLayer(KPLayer): item.setVisible(value) - class KPNodeAction(object): def __init__(self): pass -class KPNode(object): +class KPNode(object): def __init__(self): self.position = (0,0) self.actions = [] @@ -177,6 +175,9 @@ class KPPath(object): startNode.exits.append(self) endNode.exits.append(self) + self.unlocks = 0 # 0 = always unlocked, 1 = unlocked from startNode, 2 = unlocked from endNode + self.secret = 0 # 0 = unlocks from normal exit, 1 = unlocks from secret exit + if cloneFrom is None: self.animation = None else: @@ -225,9 +226,6 @@ class KPPathLayer(KPLayer): item.setFlag(flag, value) - - - class KPMap(object): def __init__(self): self.nextLayerNumber = 1 |