view gamelib/ss_state.py @ 661:5dc866e1d71d pyntnclick

Misc pep8 and pyflakes fixes
author Neil Muller <neil@dip.sun.ac.za>
date Sun, 12 Feb 2012 15:00:53 +0200
parents c77d6aa29bee
children bdebe693453f
line wrap: on
line source

"""The Custom state object for Suspended Sentence"""

from pyntnclick.state import GameState


class SSState(GameState):

    def get_jim_state(self):
        """Check JIM's health"""
        return self['bridge']['ai status']

    def loop_ai(self):
        """Make JIM loopy"""
        self['bridge']['ai status'] = 'looping'

    def break_ai(self):
        self['bridge']['ai status'] = 'dead'