C# Class SmashBros.Controllers.SoundController

Inheritance: Controller
Exibir arquivo Open project: Grutn/TDT4240-X2 Class Usage Examples

Public Methods

Method Description
Deactivate ( ) : void
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
LoadCharacterGameSounds ( Microsoft.Xna.Framework.Content.ContentManager content, CharacterStats character ) : void
LoadGameSounds ( Microsoft.Xna.Framework.Content.ContentManager content, GamePlayController controller, string background ) : void
LoadSelectionMenuSounds ( Microsoft.Xna.Framework.Content.ContentManager content, MenuController controller, List characters ) : void
OnNext ( GameStateManager value ) : void
PlaySound ( string id ) : void
SetBacgroundMusic ( Microsoft.Xna.Framework.Content.ContentManager content, string source, float volume ) : void
SoundController ( ScreenManager screen ) : System
Unload ( ) : void
Unload ( List sounds ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
getSound ( Microsoft.Xna.Framework.Content.ContentManager content, string source ) : SoundEffectInstance

Method Details

Deactivate() public method

public Deactivate ( ) : void
return void

Load() public method

public Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
return void

LoadCharacterGameSounds() public method

public LoadCharacterGameSounds ( Microsoft.Xna.Framework.Content.ContentManager content, CharacterStats character ) : void
content Microsoft.Xna.Framework.Content.ContentManager
character SmashBros.Models.CharacterStats
return void

LoadGameSounds() public method

public LoadGameSounds ( Microsoft.Xna.Framework.Content.ContentManager content, GamePlayController controller, string background ) : void
content Microsoft.Xna.Framework.Content.ContentManager
controller GamePlayController
background string
return void

LoadSelectionMenuSounds() public method

public LoadSelectionMenuSounds ( Microsoft.Xna.Framework.Content.ContentManager content, MenuController controller, List characters ) : void
content Microsoft.Xna.Framework.Content.ContentManager
controller MenuController
characters List
return void

OnNext() public method

public OnNext ( GameStateManager value ) : void
value GameStateManager
return void

PlaySound() public method

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

SetBacgroundMusic() public method

public SetBacgroundMusic ( Microsoft.Xna.Framework.Content.ContentManager content, string source, float volume ) : void
content Microsoft.Xna.Framework.Content.ContentManager
source string
volume float
return void

SoundController() public method

public SoundController ( ScreenManager screen ) : System
screen SmashBros.MySystem.ScreenManager
return System

Unload() public method

public Unload ( ) : void
return void

Unload() public method

public Unload ( List sounds ) : void
sounds List
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void