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

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

leave this state

Definition at line 18 of file state.py.

            """leave this state"""
            print 'leaving state', self
            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 is_active(self):

Generated by  Doxygen 1.6.0   Back to index