rocketraman
01/22/2018, 2:56 PMAyden
01/23/2018, 10:00 AMrocketraman
01/23/2018, 2:59 PMif
statements as you have done, but once the complexity reaches a certain level its usually better to abstract the state behavior. Try searching also for "state pattern".