Changeset 6.1.26 for main.py


Ignore:
Timestamp:
08/20/2016 08:47:30 PM (8 years ago)
Author:
David Owen <dsowen@fugue88.ws>
branch-nick:
state
revision id:
dsowen@fugue88.ws-20160820204730-pzhsvlgeq37oyft4
Message:

Objectify state

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r6.1.25 r6.1.26  
    4141
    4242class AssembleTeam(object):
     43    pass
     44
     45
     46class PerformMission(object):
    4347    pass
    4448
     
    99103        if approved:
    100104            team_failures = 0
    101             return "PERFORM_MISSION"
     105            return PerformMission()
    102106        else:
    103107            team_failures += 1
     
    135139        elif isinstance(state, AssembleTeam):
    136140            state = assemble_team()
    137         elif state == "PERFORM_MISSION":
     141        elif isinstance(state, PerformMission):
    138142            state = perform_mission()
    139143
Note: See TracChangeset for help on using the changeset viewer.