public Mario( IWorld world, Point location, IListener <IGameObject> listener, IListener <ISoundable> soundListener) : base( world, location, listener, new Point(), 32) { listener.Subscribe(this); soundListener.Subscribe(this); SoundEventArgs = new SoundArgs(); powerUpState = new Standard(this); movementState = new Standing(this); protectionState = new ProtectionStates.Normal(this); UpdateSprite(); }
public void Walk() { previous = new Walking(Owner); }
public void Idle() { previous = new Standing(Owner); }
public Jumping(Mario owner) : base(owner, 200) { previous = owner.MovementState; Finished = false; }