GAM456-SpaceInvaders / SpaceInvaders / 6_Collision / AlienObservers / InvaderDeathObserver.cs
InvaderDeathObserver.cs
Raw
using System;
using System.Diagnostics;


namespace SpaceInvaders
{
    public class InvaderDeathObserver : CollisionObserver
    {
        //-------------------------------------------------------------------
        //  CONSTRUCTION
        //-------------------------------------------------------------------

        public InvaderDeathObserver() : base()
        { }


        //-------------------------------------------------------------------
        //  PUBLIC METHODS
        //-------------------------------------------------------------------

        //alien death sound
        public override void Notify()
        {
            SoundManager.Play("invaderkilled.wav");
        }


    } // end class

} // end namespace