C# Class Ballz.Sound.SoundControl

Show file Open project: SpagAachen/Ballz

Public Properties

Property Type Description
AcceptSound string
BazookaSound string
DeclineSound string
DrownSound string
MenuMusic string
PistolSound string
SelectSound string
ShotSound string
WinnerSounds string>.Dictionary

Public Methods

Method Description
GetSound ( string name ) : SoundEffect
PlaySound ( string name ) : void
SoundControl ( Ballz game ) : System
StartMusic ( string name ) : void
StopMusic ( string name ) : void

Private Methods

Method Description
InitMusic ( SoundEffect sndEffect ) : void
LoadSound ( string name ) : SoundEffect
UpdateMusicVolume ( ) : void

Method Details

GetSound() public method

public GetSound ( string name ) : SoundEffect
name string
return Microsoft.Xna.Framework.Audio.SoundEffect

PlaySound() public method

public PlaySound ( string name ) : void
name string
return void

SoundControl() public method

public SoundControl ( Ballz game ) : System
game Ballz
return System

StartMusic() public method

public StartMusic ( string name ) : void
name string
return void

StopMusic() public method

public StopMusic ( string name ) : void
name string
return void

Property Details

AcceptSound public static property

public static string AcceptSound
return string

BazookaSound public static property

public static string BazookaSound
return string

DeclineSound public static property

public static string DeclineSound
return string

DrownSound public static property

public static string DrownSound
return string

MenuMusic public static property

public static string MenuMusic
return string

PistolSound public static property

public static string PistolSound
return string

SelectSound public static property

public static string SelectSound
return string

ShotSound public static property

public static string ShotSound
return string

WinnerSounds public static property

public static Dictionary WinnerSounds
return string>.Dictionary