view gamelib/scenes/engine.py @ 271:e3a2d73e94f4

Hook up intact pipes
author Neil Muller <neil@dip.sun.ac.za>
date Fri, 27 Aug 2010 20:56:24 +0200
parents 3b4a78422201
children 2ec328aeeaf8
line wrap: on
line source

"""Engine room where things need to be repaired."""

from gamelib.state import Scene, Item, Thing, Result
from gamelib.scenes.scene_widgets import (Door, InteractText, InteractNoImage,
                                          InteractRectUnion, InteractImage,
                                          InteractAnimated, GenericDescThing)


class Engine(Scene):

    FOLDER = "engine"
    BACKGROUND = "engine_room.png"

    INITIAL_DATA = {
        'accessible': True,
        }

    def __init__(self, state):
        super(Engine, self).__init__(state)
        self.add_thing(ToMap())

    def enter(self):
        return Result("Somewhere in the darkness the engine waits and bides its time.")


class ToMap(Door):

    SCENE = "engine"

    INTERACTS = {
        "door": InteractNoImage(663, 360, 108, 193),
        }

    INITIAL = "door"


SCENES = [Engine]