LandscapeMusicType Class Reference

#include <LandscapeMusic.h>

List of all members.

Public Types

enum  PlayState {
  StateNone, StateWait, StateLoading,
  StateBuying, StatePlaying, StateShot,
  StateScore
}

Public Member Functions

 LandscapeMusicType ()
virtual ~LandscapeMusicType ()
virtual bool readXML (XMLNode *node)

Public Attributes

std::string file
std::vector< PlayStateplaystates
float gain


Detailed Description

Definition at line 28 of file LandscapeMusic.h.


Member Enumeration Documentation

enum LandscapeMusicType::PlayState

Enumerator:
StateNone 
StateWait 
StateLoading 
StateBuying 
StatePlaying 
StateShot 
StateScore 

Definition at line 31 of file LandscapeMusic.h.


Constructor & Destructor Documentation

LandscapeMusicType::LandscapeMusicType (  ) 

Definition at line 24 of file LandscapeMusic.cpp.

LandscapeMusicType::~LandscapeMusicType (  )  [virtual]

Definition at line 28 of file LandscapeMusic.cpp.


Member Function Documentation

bool LandscapeMusicType::readXML ( XMLNode node  )  [virtual]

Definition at line 32 of file LandscapeMusic.cpp.

References S3D::checkDataFile(), XMLNode::failChildren(), file, gain, XMLNode::getNamedChild(), playstates, XMLNode::returnError(), StateBuying, StateLoading, StatePlaying, StateScore, StateShot, StateWait, and LangStringUtil::strcmp().

Referenced by LandscapeMusicManager::readGlobalMusicFile(), and LandscapeInclude::readXML().


Member Data Documentation

std::string LandscapeMusicType::file

Definition at line 47 of file LandscapeMusic.h.

Referenced by LandscapeMusicManager::addMusicType(), and readXML().

std::vector<PlayState> LandscapeMusicType::playstates

Definition at line 48 of file LandscapeMusic.h.

Referenced by LandscapeMusicManager::addMusicType(), LandscapeMusicManager::readGlobalMusicFile(), and readXML().

float LandscapeMusicType::gain

Definition at line 49 of file LandscapeMusic.h.

Referenced by LandscapeMusicManager::addMusicType(), and readXML().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:03 2009 for Scorched3D by  doxygen 1.5.3