Ejemplo n.º 1
0
 public FireFlower(
     IWorld world,
     Point location,
     IListener <IGameObject> listener,
     IListener <ISoundable> soundListener,
     bool isUnveil = false) : base(
         world,
         location,
         listener,
         new Point(32, 32))
 {
     soundListener.Subscribe(this);
     SoundEventArgs = new SoundArgs();
     SoundEventArgs.SetMethodCalled();
     collected = false;
     if (isUnveil)
     {
         state = new Unveil(this);
         UpdateSprite();
     }
     else
     {
         state = new Normal(this);
         UpdateSprite();
     }
 }
Ejemplo n.º 2
0
 public SuperMushroom(
     IWorld world,
     Point location,
     IListener <IGameObject> listener,
     IListener <ISoundable> soundListener,
     bool isUnveil = false) : base(world, location, listener, new Point(32, 32), 32)
 {
     collected          = false;
     this.listener      = listener;
     this.soundListener = soundListener;
     soundListener.Subscribe(this);
     SoundEventArgs = new SoundArgs();
     SoundEventArgs.SetMethodCalled();
     if (isUnveil)
     {
         state = new Unveil(this);
         UpdateSprite();
     }
     else
     {
         state = new SuperMushroomStates.Normal(this);
         UpdateSprite();
     }
 }