Пример #1
0
 public void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (selectSound)
     {
         sound.Play(buffers.Ue, null);
     }
 }
Пример #2
0
 public void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (selectSound)
     {
         sound.Play(buffers.Ue, null);
     }
 }
Пример #3
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound())
     {
         return;
     }
     if (jumpSound)
     {
         sound.Play(buffers.Jump, this);
     }
     if (tiunSound)
     {
         sound.Play(buffers.Tiun, this);
     }
     if (coinSound)
     {
         sound.Play(buffers.Coin, this);
         if (Game.NumCoins > 0)
         {
             sound.Play(buffers.Hyakuyen, this);
         }
         else
         {
             sound.Play(buffers.Stiana, this);
         }
     }
 }
Пример #4
0
 public void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     foreach (Thing thing in list)
     {
         thing.PlaySound(sound, buffers);
     }
 }
Пример #5
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (fallSound)
     {
         sound.Play(buffers.Fall, this);
     }
 }
Пример #6
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (animation == 8)
     {
         sound.Play(buffers.Spring, this);
     }
 }
Пример #7
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (animation == 8)
     {
         sound.Play(buffers.Spring, this);
     }
 }
Пример #8
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound()) return;
     if (pressSound)
     {
         sound.Play(buffers.Switch, this);
     }
 }
Пример #9
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound())
     {
         return;
     }
     if (pressSound)
     {
         sound.Play(buffers.Switch, this);
     }
 }
Пример #10
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound())
     {
         return;
     }
     if (moveCount == 0)
     {
         sound.Play(buffers.Lift, this);
     }
 }
Пример #11
0
 public void Dispose()
 {
     StopSounds();
     if (buffers != null)
     {
         buffers.Dispose();
         buffers = null;
     }
     if (device != null)
     {
         device.Dispose();
         device = null;
     }
 }
Пример #12
0
 public void Dispose()
 {
     StopSounds();
     if (buffers != null)
     {
         buffers.Dispose();
         buffers = null;
     }
     if (device != null)
     {
         device.Dispose();
         device = null;
     }
 }
Пример #13
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound())
     {
         return;
     }
     if (MoveCount == 1)
     {
         sound.Play(buffers.BoxMove, this);
     }
     if (LandState == ON_GROUND && prevLandState == IN_AIR)
     {
         sound.Play(buffers.BoxFall, this);
     }
 }
Пример #14
0
        public MafiaSound(Form form)
        {
            try
            {
                device = new Device();
            }
            catch
            {
                return;
            }
            device.SetCooperativeLevel(form, CooperativeLevel.Priority);
            buffers = new MafiaBufferContainer(device);

            channels = new GameSoundChannel[MAX_NUM_CHANNELS];
            numChannels = 0;

            ticks = 0;
        }
Пример #15
0
        public MafiaSound(Form form)
        {
            try
            {
                device = new Device();
            }
            catch
            {
                return;
            }
            device.SetCooperativeLevel(form, CooperativeLevel.Priority);
            buffers = new MafiaBufferContainer(device);

            channels    = new GameSoundChannel[MAX_NUM_CHANNELS];
            numChannels = 0;

            ticks = 0;
        }
Пример #16
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound()) return;
     if (moveCount == 0)
     {
         sound.Play(buffers.Lift, this);
     }
 }
Пример #17
0
 public void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     things.PlaySound(sound, buffers);
 }
Пример #18
0
 public void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     things.PlaySound(sound, buffers);
 }
Пример #19
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (fallSound)
     {
         sound.Play(buffers.Fall, this);
     }
 }
Пример #20
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound()) return;
     if (jumpSound)
     {
         sound.Play(buffers.Jump, this);
     }
     if (tiunSound)
     {
         sound.Play(buffers.Tiun, this);
     }
     if (coinSound)
     {
         sound.Play(buffers.Coin, this);
         if (Game.NumCoins > 0)
         {
             sound.Play(buffers.Hyakuyen, this);
         }
         else
         {
             sound.Play(buffers.Stiana, this);
         }
     }
 }
Пример #21
0
 public abstract void PlaySound(MafiaSound sound, MafiaBufferContainer buffers);
Пример #22
0
 public void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     foreach (Thing thing in list)
     {
         thing.PlaySound(sound, buffers);
     }
 }
Пример #23
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
 }
Пример #24
0
 public abstract void PlaySound(MafiaSound sound, MafiaBufferContainer buffers);
Пример #25
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
 }
Пример #26
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound()) return;
     if (MoveCount == 1)
     {
         sound.Play(buffers.BoxMove, this);
     }
     if (LandState == ON_GROUND && prevLandState == IN_AIR)
     {
         sound.Play(buffers.BoxFall, this);
     }
 }