Mercurial > boomslang
view gamelib/ss_state.py @ 732:4f34b36ee7c5 pyntnclick
Add constants subclass to gamelib, and get the title + icon from it
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Tue, 15 Jan 2013 23:15:11 +0200 |
parents | 5dc866e1d71d |
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'