Blaze-Brigade
Static Public Member Functions | List of all members
View.Sounds Class Reference

Sound class containing methods to play all different sounds to be used in the game More...

Static Public Member Functions

static void attackSound (Unit unit)
 
static void walkingSound ()
 
static void playMenuSong (bool play)
 
static void playMapSong (bool play)
 
static void playGameOverSong ()
 

Detailed Description

Sound class containing methods to play all different sounds to be used in the game

Member Function Documentation

§ attackSound()

static void View.Sounds.attackSound ( Unit  unit)
static

This method takes in a unit, and plays an attacking sound corresponding to the unit's weapon. The weapon sounds include Sword, Bow, and Magic. /param unit The unit who's weapon sound will be played.

§ playGameOverSong()

static void View.Sounds.playGameOverSong ( )
static

This method plays the Game Over Song.

§ playMapSong()

static void View.Sounds.playMapSong ( bool  play)
static

This method takes in the bool play, and either plays the instance of Main Map Song if true, or stops it from playing if false.

Parameters
playThe Boolean determining if music should be played or stopped.

§ playMenuSong()

static void View.Sounds.playMenuSong ( bool  play)
static

This method takes in the bool play, and either plays the instance of Menu song if true, or stops it from playing if false.

Parameters
playThe Boolean determining if music should be played or stopped.

§ walkingSound()

static void View.Sounds.walkingSound ( )
static

This method plays a single walking step sound.


The documentation for this class was generated from the following file: