Pol  Revision:3cfda13
Pol::Core::MusicRegion Class Reference

#include <musicrgn.h>

+ Inheritance diagram for Pol::Core::MusicRegion:

Public Member Functions

 MusicRegion (Clib::ConfigElem &elem, RegionId id)
 
virtual size_t estimateSize () const POL_OVERRIDE
 
unsigned short getmidi () const
 
- Public Member Functions inherited from Pol::Core::Region
Bscript::BObjectImpget_region_string (const std::string &propname)
 
const std::string & name () const
 
RegionId regionid () const
 

Private Types

typedef Region base
 

Private Attributes

std::vector< unsigned short > midilist_
 

Additional Inherited Members

- Protected Member Functions inherited from Pol::Core::Region
 Region (Clib::ConfigElem &elem, RegionId id)
 
virtual ~Region ()
 
void read_custom_config (Clib::ConfigElem &elem)
 
- Protected Attributes inherited from Pol::Core::Region
std::string name_
 
PropertyList proplist_
 
RegionId regionid_
 

Detailed Description

Definition at line 31 of file musicrgn.h.

Member Typedef Documentation

Definition at line 33 of file musicrgn.h.

Constructor & Destructor Documentation

Pol::Core::MusicRegion::MusicRegion ( Clib::ConfigElem elem,
RegionId  id 
)

Definition at line 17 of file musicrgn.cpp.

References midilist_, and Pol::Clib::ConfigElem::remove_prop().

Member Function Documentation

size_t Pol::Core::MusicRegion::estimateSize ( ) const
virtual

Reimplemented from Pol::Core::Region.

Definition at line 26 of file musicrgn.cpp.

References Pol::Core::Region::estimateSize(), and midilist_.

unsigned short Pol::Core::MusicRegion::getmidi ( ) const

Definition at line 32 of file musicrgn.cpp.

References midilist_, and Pol::Clib::random_int().

Referenced by Pol::Mobile::Character::check_music_region_change().

Member Data Documentation

std::vector<unsigned short> Pol::Core::MusicRegion::midilist_
private

Definition at line 43 of file musicrgn.h.

Referenced by estimateSize(), getmidi(), and MusicRegion().


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