Example #1
0
 public void obtainCape()
 {
     stateMachine.setCurrentState(new CapeMario(stateMachine));
     stateMachine.setScore(stateMachine.getScore() + 200);
 }
Example #2
0
 public void obtainMushRoom()
 {
     stateMachine.setCurrentState(new SuperMario(stateMachine));
     stateMachine.setScore(stateMachine.getScore() + 100);
 }