Logo Search packages:      
Sourcecode: castle-combat version File versions  Download package

def state::State::quit (   self  )  [inherited]

leave this state

Definition at line 17 of file state.py.

            """leave this state"""
            removedState = State.stack.pop()
            assert removedState == self, ("Can only leave active state. Tried to exit %s but %s is active" % (self, removedState))
            if len(State.stack) > 0:
            # don't let events from the old state get to the new one

      def handle(self):

Generated by  Doxygen 1.6.0   Back to index