Data Structures | |
| class | ArsApplication |
| class | CtrlMessage |
| Any messages generated by controls. More... | |
| class | ExceptionApp |
| General wGui errors. More... | |
| class | ExceptionBase |
| All wGui exception classes are derived from here. More... | |
| class | ExceptionFreeType |
| Exceptions caused by FreeType errors. More... | |
| class | ExceptionLexer |
| Exceptions caused by the Lexer. More... | |
| class | ExceptionRange |
| Exceptions caused by out-of-range type errors. More... | |
| class | ExceptionSDL |
| Exceptions caused by SDL errors. More... | |
| class | ExprInt |
| class | ExprIntParser |
| class | ExprIntParser.Context |
| class | ExprParser |
| class | ExprParser.Context |
| class | FontEngine |
| class | Form |
| class | HPaint |
| class | KeyboardMessage |
| class | Message |
| class | MessageClient |
| class | MessageServer |
| A server which queues and dispatches messages. More... | |
| class | MouseMessage |
| Any messages generated from mouse input. More... | |
| class | Painter |
| Painter objects take care of all the actual drawing functions needed to draw to an SDL surface. More... | |
| class | ResizeMessage |
| A resize message generated by a resizable view. More... | |
| class | RGBColor |
| class | Rsrc |
| class | Sounds |
| class | Thing |
| class | Timer |
| class | UserMessage |
| Any user created messages. More... | |
| class | View |
| A general view class. More... | |
| class | Window |
| class | XBox |
| class | XButton |
| class | XButtonImage |
| class | XCheckBox |
| A checkbox control. More... | |
| class | XDropDown |
| class | XEditBox |
| class | XGroupBox |
| class | XImage |
| class | XLabel |
| A static label that renders it's multiple lines to the screen. More... | |
| class | XListBox |
| struct | XListItem |
| class | XMPEG |
| class | XPoint |
| class | XProgress |
| class | XRect |
| A representation of a rectangle. More... | |
| class | XScrollBar |
| class | XTextBox |
| class | XToolTip |
Functions | |
| icstring & | strip (icstring &s) |
| const bool | AddCallBack (const string str, void *f) |
| Sounds & | GetSound (const icstring &name) |
| Sounds & | AddSound (const icstring &name, const string &aSection, const string &akey, string aCfgFile) |
| Sounds & | AddSound (const icstring &name, const string &aFilename) |
| void | UnloadSounds (void) |
| void | Preload (const icstring &aSection) |
| Uint32 | TimerCallback (Uint32 Interval, void *param) |
Variables | |
| int | idCnt = 0x10000000 |
| SDL_mutex * | rsrcMutex = 0 |
| int | cnt = 0 |
| std::map< icstring, Sounds * > | soundList |
| Sounds | emptySound |
| XRect | EmptyRect (0, 0,-1,-1) |
| XRect | emptyRect (0, 0, 0, 0) |
|
||||||||||||
|
Definition at line 22 of file arsrsrc.cpp. References icstring.
00023 {
00024 return ArsApplication::lbGetter.insert( make_pair( icstring( str.c_str() ) , f ) ).second;
00025 }
|
|
||||||||||||
|
Definition at line 77 of file arssound.cpp. References GetSound(), Ars::Sounds::Load(), and soundList.
|
|
||||||||||||||||||||
|
Definition at line 66 of file arssound.cpp. References emptySound, GetSound(), Ars::Sounds::Load(), and soundList. Referenced by MainGame::MainLoop(), and Preload().
00067 {
00068 if( GetSound( name ) == emptySound )
00069 {
00070 Sounds *s = new Sounds();
00071 s->Load( aSection , akey , aCfgFile );
00072 soundList.insert( make_pair( name , s ) );
00073 }
00074 return GetSound( name );
00075 }
|
|
|
Definition at line 58 of file arssound.cpp. References emptySound, and soundList. Referenced by AddSound(), Ars::Window::evMouseButtonUp(), and MainGame::PlayIntro().
00059 {
00060 std::map<icstring , Sounds *>::iterator pos = soundList.find( name );
00061
00062 if( pos == soundList.end() )
00063 return emptySound;
00064 return *pos->second;
00065 }
|
|
|
Definition at line 95 of file arssound.cpp. References AddSound(), Ars::Rsrc::FindCombination(), Cfg::GetCfg(), Cfg::Handler::GetPath(), icstring, and strip(). Referenced by MainGame::PlayIntro().
00096 {
00097 Cfg::Handler &h = Cfg::GetCfg( "@sounds" );
00098 Rsrc res( Cfg::GetCfg().GetCfgString( "Paths" , "Sounds" ) );
00099 string path = h.GetPath();
00100
00101 icstring tmp = icstring( aSection.c_str() );
00102 tmp = res.FindCombination( tmp );
00103 icstring snd = strip( tmp );
00104
00105 while( !snd.empty() )
00106 {
00107 icstring sndDef = Rsrc::GetList( snd );
00108 if( !sndDef.empty() )
00109 {
00110 icstring name = Rsrc::GetId( sndDef );
00111 string fname = path + Rsrc::GetStr( sndDef ).c_str();
00112 AddSound( name , fname );
00113 }
00114 }
00115 }
|
|
|
Definition at line 8 of file arsrsrc.cpp. References icstring. Referenced by Cfg::Handler::AddLine(), Ars::Rsrc::FindCrdOf(), Cfg::Handler::GetCdr(), Ars::Rsrc::GetList(), Ars::Rsrc::GetMnemo(), Ars::Rsrc::Load(), Preload(), Parameters::SetupEcoZones(), Parameters::SetupPlanetInfo(), Parameters::SetupPlanetSize(), Parameters::SetupSpecies(), and Parameters::SetupStarInfo().
00009 {
00010 icstring::size_type idx = s.find_first_not_of( "\t \n" );
00011 if( idx != string::npos )
00012 s = s.substr( idx );
00013 int i = (s.length() - 1);
00014 while( i > 0 && (s[i] == ' ' || s[i] == '\t' || s[i] == '\n') ) i--;
00015 s = s.substr( 0 , i + 1 );
00016
00017 return s;
00018 }
|
|
||||||||||||
|
For internal use only For internal use only. The callback used by the SDL Timer Definition at line 5 of file arstimer.cpp. Referenced by Ars::Timer::StartTimer().
00006 {
00007 return static_cast<Timer*>(param)->TimerHit(Interval);
00008 }
|
|
|
Definition at line 88 of file arssound.cpp. References soundList. Referenced by Ars::ArsApplication::~ArsApplication().
|
|
|
Definition at line 5 of file arssound.cpp. Referenced by Ars::Sounds::Sounds(). |
|
|
|
|
|
|
|
|
Definition at line 56 of file arssound.cpp. Referenced by AddSound(), and GetSound(). |
|
|
Definition at line 45 of file arsobject.cpp. Referenced by Ars::Thing::Thing(). |
|
|
Definition at line 20 of file arsrsrc.cpp. Referenced by Ars::ArsApplication::ArsApplication(), Ars::Rsrc::FindCrdOf(), Ars::Rsrc::GetColor(), Ars::Rsrc::GetDbl(), Ars::Rsrc::GetId(), Ars::Rsrc::GetInt(), Ars::Rsrc::GetList(), Ars::Rsrc::GetMnemo(), Ars::Rsrc::GetStr(), and Ars::ArsApplication::~ArsApplication(). |
|
|
Definition at line 54 of file arssound.cpp. Referenced by AddSound(), GetSound(), and UnloadSounds(). |
1.3.3