Exemple #1
0
 public PipeExitState(Mario mario, MarioActionState lastAction, MarioPowerUpState lastPower)
 {
     Systems.Events.TheInstance.Warp();
     this.mario          = mario;
     this.lastPower      = lastPower;
     this.lastAction     = lastAction;
     this.ascendDistance = (int)this.mario.PositionInGame.Y - mario.Sprite.GetDimensions().Y;
 }
Exemple #2
0
 public PipeEnterState(Mario mario, int warpX, int warpY, MarioActionState lastAction, MarioPowerUpState lastPower)
 {
     Systems.Events.TheInstance.Warp();
     this.mario           = mario;
     this.lastPower       = lastPower;
     this.lastAction      = lastAction;
     this.descendDistance = this.mario.PositionInGame.Y + this.descendDistance;
     this.warpX           = warpX;
     this.warpY           = warpY;
 }