示例#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();
 }