Changeset 6.1.24 for main.py


Ignore:
Timestamp:
08/20/2016 08:45:48 PM (8 years ago)
Author:
David Owen <dsowen@fugue88.ws>
branch-nick:
state
revision id:
dsowen@fugue88.ws-20160820204548-xglsqmn31fir8vvp
Message:

Objectify state

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r6.1.23 r6.1.24  
    3434    else:
    3535        return 1
     36
     37
     38class AdvanceMission(object):
     39    pass
    3640
    3741
     
    118122
    119123        mission += 1
    120         return "ADVANCE_MISSIONS"
     124        return AdvanceMission()
    121125
    122     state = "ADVANCE_MISSIONS"
     126    state = AdvanceMission()
    123127
    124128    while True:
    125         if state == "ADVANCE_MISSIONS":
     129        if isinstance(state, AdvanceMission):
    126130            state = advance_mission()
    127131        elif state == "ASSEMBLE_TEAM":
Note: See TracChangeset for help on using the changeset viewer.