Last active
July 21, 2016 07:25
-
-
Save simpleprogrammer-shared/8a604cf83fd9d0487351b1e4f8987559 to your computer and use it in GitHub Desktop.
Back to Basics: Mock Eliminating Patterns 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private apocalypseStateMachine = new ApocalypseStateMachine(); | |
public ApocalypseScenario CreateNew() | |
{ | |
if(apocalypseStateMachine.State == States.PENGUIN_SLAUGHTER) | |
return new ApocalypseScenario("Penguin Apocalypse, Code Blue"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment