Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 public void Walk()
 {
     previous = new Walking(Owner);
 }
Esempio n. 3
0
 public void Idle()
 {
     previous = new Standing(Owner);
 }
Esempio n. 4
0
 public Jumping(Mario owner) : base(owner, 200)
 {
     previous = owner.MovementState;
     Finished = false;
 }