Пример #1
0
 public void Mushroom()
 {
     context.PowerState = context.GetSuperMarioState();
     context.SetCurrentState(MarioState.Super);
     context.WidthHeight = new Microsoft.Xna.Framework.Vector2(MarioSpriteFactory.BIG_MARIO_WIDTH, MarioSpriteFactory.BIG_MARIO_HEIGHT);
     context.GrowUp();
     context.PowerState.Transition();
 }
Пример #2
0
 public void ChangeToSuperMario()
 {
     context.PowerState = context.GetSuperMarioState();
     context.SetCurrentState(MarioState.Super);
     context.WidthHeight = new Vector2(MarioSpriteFactory.BIG_MARIO_WIDTH, MarioSpriteFactory.BIG_MARIO_HEIGHT);
     context.GrowUp();
     context.PowerState.Transition();
 }
Пример #3
0
 public void Damage()
 {
     context.PowerState = context.GetSuperMarioState();
     context.SetCurrentState(MarioState.Super);
     context.PowerState.Transition();
 }