Example #1
0
 def __init__(self):
     state_log("Creating player quit level state")
     self.name = "Player Quit Level State"
Example #2
0
 def enter_state(self):
     state_log("Entry of GameLevelQuit should taunt the user for cowardice and offer to play again")
Example #3
0
 def player_picks_level(self, level):
     state_log( "Player picked level " + str(level))
     self.update_state( createGamePlayingLevel(level) )
Example #4
0
 def player_returns_to_menu(self):
     state_log("player returns to main menu")
     self.update_state( createGameShowingMenu() )
Example #5
0
 def __init__(self):
     state_log("Creating level selection state")
     self.name = "Player Selects Level State"
Example #6
0
 def __init__(self):
     state_log("Creating menu state")
     self.name = "Showing Menu State"
Example #7
0
 def player_picks_play(self):
     state_log("player advances to level selection")
     self.update_state( createGameLevelSelect() )
Example #8
0
 def enter_state(self):
     state_log("Entry of GameLevelLost should mock the user and offer quit or play again")
Example #9
0
 def __init__(self):
     state_log("Creating player lost level state")
     self.name = "Player Lost Level State"