Pol
Revision:cb584c9
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
tiplstwn.cpp
Go to the documentation of this file.
1
7
#include <string>
8
9
#include "../clib/dirlist.h"
10
#include "
globals/uvars.h
"
11
12
namespace
Pol
13
{
14
namespace
Core
15
{
16
void
load_tips
()
17
{
18
gamestate
.
tipfilenames
.clear();
19
20
for
(
Clib::DirList
dl(
"tips/"
); !dl.
at_end
(); dl.next() )
21
{
22
std::string
name
= dl.name();
23
if
( name[0] ==
'.'
)
24
continue
;
25
if
( name.find(
".txt"
) != std::string::npos )
26
{
27
gamestate
.
tipfilenames
.push_back( name.c_str() );
28
}
29
}
30
}
31
}
32
}
Pol::Clib::DirList::at_end
bool at_end() const
Definition:
dirlist.cpp:102
uvars.h
Pol::Core::GameState::tipfilenames
std::vector< std::string > tipfilenames
Definition:
uvars.h:192
Pol::Clib::DirList
Definition:
dirlist.h:23
Pol::Core::load_tips
void load_tips()
Definition:
tiplstwn.cpp:16
Pol::Core::gamestate
GameState gamestate
Definition:
uvars.cpp:74
name
std::string name
Definition:
osmod.cpp:943
Pol
Definition:
berror.cpp:12
pol
tiplstwn.cpp
Generated on Wed Oct 10 2018 02:42:30 for Pol by
1.8.11