public LeftCommand(Avatar receiver) { this.receiver = receiver; }
public void SmallMario(Avatar context) { context.PowerState = new SmallState(); }
public void FireMario(Avatar context) { }
public void SuperMario(Avatar context) { }
public Vector2 GetCollisionMin(Avatar context) { return(new Vector2(context.Position.X + 10, context.Position.Y + 7)); }
public void RightAction(Avatar context) { context.HorizontalState = new RunningRightAvatar(); context.Velocity = new Vector2(1, context.Velocity.Y); }
public void LeftAction(Avatar context) { context.HorizontalState = new RightAvatar(); context.Velocity = new Vector2(0, context.Velocity.Y); }
public DamageCommand(Avatar receiver) { this.receiver = receiver; }
public SanitizerballCommand(Avatar receiver) { this.receiver = receiver; }
public SuperMarioCommand(Avatar receiver) { this.receiver = receiver; }
public FireMarioCommand(Avatar receiver) { this.receiver = receiver; }
public StandardMarioCommand(Avatar receiver) { this.receiver = receiver; }
public BrickBlockCommand(Block receiver, Avatar avatarState) { this.receiver = receiver; this.avatarState = avatarState; }
public RightCommand(Avatar receiver) { this.receiver = receiver; }
public void LeftAction(Avatar context) { }
public void DeadMario(Avatar context) { }
public void LeftAction(Avatar context) { context.HorizontalState = new LeftAvatar(); }
public void UpAction(Avatar context) { context.VerticalState = new JumpingAvatar(); }
public void SmallMario(Avatar context) { }
public void DownAction(Avatar context) { context.VerticalState = new CrouchingAvatar(); }
public void RightAction(Avatar context) { }
public void DownAction(Avatar context) { context.VerticalState = new IdleAvatar(); }
public void FireMario(Avatar context) { context.PowerState = new FireState(); }
public void UpAction(Avatar context) { }
public Vector2 GetCollisionSize(Avatar context) { return(new Vector2(12, 25)); }
public void DownAction(Avatar context) { }
public void SuperMario(Avatar context) { context.PowerState = new SuperState(); }
public void RightAction(Avatar context) { context.HorizontalState = new RightAvatar(); }
public void DeadMario(Avatar context) { context.PowerState = new DeadState(); }
public CrouchCommand(Avatar receiver) { this.receiver = receiver; }