decompilation: Fix toontown.safezone.GolfKart decompilation.

This commit is contained in:
Sam Edwards 2013-09-25 05:02:56 -06:00
parent 340b04f6c7
commit 33bc85b7fa

View file

@ -16,16 +16,53 @@ class GolfKart(StateData.StateData):
def __init__(self, safeZone, parentFSM, doneEvent, golfCourse):
StateData.StateData.__init__(self, doneEvent)
self.golfCourse = golfCourse
self.fsm = ClassicFSM.ClassicFSM('GolfKart', [State.State('start', self.enterStart, self.exitStart, ['requestBoard', 'trolleyHFA', 'trolleyTFA']),
State.State('trolleyHFA', self.enterTrolleyHFA, self.exitTrolleyHFA, ['final']),
State.State('trolleyTFA', self.enterTrolleyTFA, self.exitTrolleyTFA, ['final']),
State.State('requestBoard', self.enterRequestBoard, self.exitRequestBoard, ['boarding']),
State.State('boarding', self.enterBoarding, self.exitBoarding, ['boarded']),
State.State('boarded', self.enterBoarded, self.exitBoarded, ['requestExit', 'trolleyLeaving', 'final']),
State.State('requestExit', self.enterRequestExit, self.exitRequestExit, ['exiting', 'trolleyLeaving']),
State.State('trolleyLeaving', self.enterTrolleyLeaving, self.exitTrolleyLeaving, ['final']),
State.State('exiting', self.enterExiting, self.exitExiting, ['final']),
State.State('final', self.enterFinal, self.exitFinal, ['start'])], 'start', 'final')
self.fsm = ClassicFSM.ClassicFSM('GolfKart', [
State.State('start',
self.enterStart,
self.exitStart, [
'requestBoard',
'trolleyHFA',
'trolleyTFA']),
State.State('trolleyHFA',
self.enterTrolleyHFA,
self.exitTrolleyHFA, [
'final']),
State.State('trolleyTFA',
self.enterTrolleyTFA,
self.exitTrolleyTFA, [
'final']),
State.State('requestBoard',
self.enterRequestBoard,
self.exitRequestBoard, [
'boarding']),
State.State('boarding',
self.enterBoarding,
self.exitBoarding, [
'boarded']),
State.State('boarded',
self.enterBoarded,
self.exitBoarded, [
'requestExit',
'trolleyLeaving',
'final']),
State.State('requestExit',
self.enterRequestExit,
self.exitRequestExit, [
'exiting',
'trolleyLeaving']),
State.State('trolleyLeaving',
self.enterTrolleyLeaving,
self.exitTrolleyLeaving, [
'final']),
State.State('exiting',
self.enterExiting,
self.exitExiting, [
'final']),
State.State('final',
self.enterFinal,
self.exitFinal, [
'start'])],
'start', 'final')
self.parentFSM = parentFSM
return None