C# Class SmashBros.Controllers.SoundController

Inheritance: Controller
Afficher le fichier Open project: Grutn/TDT4240-X2 Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

Deactivate() public méthode

public Deactivate ( ) : void
Résultat void

Load() public méthode

public Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
Résultat void

LoadCharacterGameSounds() public méthode

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

LoadGameSounds() public méthode

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

LoadSelectionMenuSounds() public méthode

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

OnNext() public méthode

public OnNext ( GameStateManager value ) : void
value GameStateManager
Résultat void

PlaySound() public méthode

public PlaySound ( string id ) : void
id string
Résultat void

SetBacgroundMusic() public méthode

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

SoundController() public méthode

public SoundController ( ScreenManager screen ) : System
screen SmashBros.MySystem.ScreenManager
Résultat System

Unload() public méthode

public Unload ( ) : void
Résultat void

Unload() public méthode

public Unload ( List sounds ) : void
sounds List
Résultat void

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void