Home
last modified time | relevance | path

Searched refs:TdfParser (Results 1 – 17 of 17) sorted by relevance

/dports/games/spring/spring_98.0/rts/System/
H A DTdfParser.cpp39 TdfParser::parse_error::~parse_error() throw() {} in ~parse_error()
44 void TdfParser::TdfSection::print(std::ostream & out) const in print()
56 TdfParser::TdfSection* TdfParser::TdfSection::construct_subsection(const std::string& name) in construct_subsection()
99 TdfParser::TdfSection::~TdfSection() in ~TdfSection()
108 TdfParser::TdfParser(char const* buf, size_t size) in TdfParser() function in TdfParser
113 TdfParser::TdfParser(std::string const& filename) in TdfParser() function in TdfParser
118 TdfParser::~TdfParser() in ~TdfParser()
122 void TdfParser::print(std::ostream & out) const { in print()
190 void TdfParser::LoadBuffer(char const* buf, size_t size) in LoadBuffer()
197 void TdfParser::LoadFile(std::string const& filename) in LoadFile()
[all …]
H A DStartScriptGen.cpp234 TdfParser::TdfSection setup; in CreateMinimalSetup()
235 TdfParser::TdfSection* g = setup.construct_subsection("GAME"); in CreateMinimalSetup()
247 TdfParser::TdfSection* player0 = g->construct_subsection("PLAYER0"); in CreateMinimalSetup()
251 TdfParser::TdfSection* team0 = g->construct_subsection("TEAM0"); in CreateMinimalSetup()
255 TdfParser::TdfSection* ally0 = g->construct_subsection("ALLYTEAM0"); in CreateMinimalSetup()
270 TdfParser::TdfSection setup; in CreateDefaultSetup()
271 TdfParser::TdfSection* g = setup.construct_subsection("GAME"); in CreateDefaultSetup()
290 TdfParser::TdfSection* ai = g->construct_subsection("AI0"); in CreateDefaultSetup()
297 TdfParser::TdfSection* aisec = g->construct_subsection("AI0"); in CreateDefaultSetup()
308 TdfParser::TdfSection* team0 = g->construct_subsection("TEAM0"); in CreateDefaultSetup()
[all …]
H A DTdfParser.h19 class TdfParser
60 TdfParser() {}; in TdfParser() function
61 TdfParser(std::string const& filename);
62 TdfParser(const char* buffer, size_t size);
63 virtual ~TdfParser();
140 void TdfParser::TdfSection::AddPair(const std::string& key, const T& value) in AddPair()
148 bool TdfParser::GetValue(T& val, const std::string& location) const in GetValue()
161 int TdfParser::GetVector(std::vector<T> &vec, std::string const& location) const in GetVector()
179 void TdfParser::ParseArray(std::string const& value, T *array, int length) const in ParseArray()
192 void TdfParser::GetTDef(T& value, const T& defvalue, const std::string& key) const in GetTDef()
[all …]
H A Dtdf_grammar.h78 struct section_closure : closure<section_closure, TdfParser::TdfSection*> {
86 tdf_grammar(TdfParser::TdfSection* sec, std::list<std::string>* junk_data) in tdf_grammar()
122 …[ section.context = phoenix::bind(&TdfParser::TdfSection::construct_subsection)(section.context, a… in definition()
132 …[ phoenix::bind(&TdfParser::TdfSection::add_name_value)(section.context, var(temp1), construct_<st… in definition()
153 TdfParser::TdfSection* section;
/dports/games/spring/spring_98.0/rts/Game/
H A DGameSetup.h17 class TdfParser; variable
118 void LoadMutators(const TdfParser& file, std::vector<std::string>& mutatorsList);
123 void LoadUnitRestrictions(const TdfParser& file);
129 void LoadPlayers(const TdfParser& file, std::set<std::string>& nameList);
133 void LoadSkirmishAIs(const TdfParser& file, std::set<std::string>& nameList);
139 void LoadTeams(const TdfParser& file);
145 void LoadAllyTeams(const TdfParser& file);
H A DGameSetup.cpp137 void CGameSetup::LoadUnitRestrictions(const TdfParser& file) in LoadUnitRestrictions()
205 void CGameSetup::LoadMutators(const TdfParser& file, std::vector<std::string>& mutatorsList) in LoadMutators()
214 void CGameSetup::LoadPlayers(const TdfParser& file, std::set<std::string>& nameList) in LoadPlayers()
258 void CGameSetup::LoadSkirmishAIs(const TdfParser& file, std::set<std::string>& nameList) in LoadSkirmishAIs()
310 void CGameSetup::LoadTeams(const TdfParser& file) in LoadTeams()
350 void CGameSetup::LoadAllyTeams(const TdfParser& file) in LoadAllyTeams()
462 TdfParser file(buf.c_str(),buf.size()); in Init()
H A DPreGame.cpp354 TdfParser script(data->GetSetup().c_str(), data->GetSetup().size()); in ReadDataFromDemo()
355 TdfParser::TdfSection* tgame = script.GetRootSection()->sections["game"]; in ReadDataFromDemo()
362 …for (std::map<std::string, TdfParser::TdfSection*>::iterator it = tgame->sections.begin(); it != t… in ReadDataFromDemo()
387 TdfParser::TdfSection* me = tgame->construct_subsection(playerStr); in ReadDataFromDemo()
392 TdfParser::TdfSection* modopts = tgame->construct_subsection("MODOPTIONS"); in ReadDataFromDemo()
H A DClientSetup.cpp40 TdfParser file(setup.c_str(), setup.length()); in LoadFromStartScript()
/dports/games/spring/spring_98.0/rts/Map/SM3/terrain/
H A DTerrainTexture.h9 class TdfParser; variable
56 void Parse(const TdfParser& tdf, bool needNormalMap);
83 …static void LoadStages(int numStages, const char *stagename, const TdfParser& tdf, std::vector<Sta…
174 …void Load (const TdfParser *parser, Heightmap *heightmap, TQuad *quadTree, const std::vector<QuadM…
242 const TdfParser *tdfParser;
H A DTextures.h9 class TdfParser; variable
86 …void Load(const std::string& name, const std::string& section, ILoadCallback* cb, const TdfParser*…
96 …& name, const std::string& section, Heightmap* heightmap, ILoadCallback* cb, const TdfParser* tdf);
H A DTerrain.h14 class TdfParser; variable
130 void Load(const TdfParser& tdf, LightingInfo* li, ILoadCallback* cb);
131 void LoadHeightMap(const TdfParser&, ILoadCallback*);
H A DTextures.cpp79 …std::string& name, const std::string& section, ILoadCallback* cb, const TdfParser* tdf, bool isBum… in Load()
125 …g& name, const std::string& section, Heightmap* heightmap, ILoadCallback* cb, const TdfParser* tdf) in Load()
H A DTerrainTexture.cpp161 void TerrainTexture::Load(const TdfParser* tdf, Heightmap* heightmap, in Load()
619 …void ShaderDef::LoadStages(int numStages,const char* stagename, const TdfParser& tdf, std::vector<… in LoadStages()
664 void ShaderDef::Parse(const TdfParser& tdf, bool needNormalMap) { in Parse()
H A DTerrain.cpp835 void Terrain::Load(const TdfParser& tdf, LightingInfo* li, ILoadCallback* cb) in Load()
920 void Terrain::LoadHeightMap(const TdfParser& parser, ILoadCallback* cb) in LoadHeightMap()
/dports/games/spring/spring_98.0/AI/Skirmish/HughAI/src-ai/hughai/utils/
H A DTdfParser.java39 public class TdfParser class
47 public TdfParser( PlayerObjects playerObjects, String tdfcontents) in TdfParser() method in TdfParser
59 public static TdfParser FromFile( PlayerObjects playerObjects, String filename) in FromFile()
62 return new TdfParser(playerObjects, rawtdf); in FromFile()
/dports/games/spring/spring_98.0/rts/Map/SM3/
H A DSM3Map.cpp36 static const TdfParser& GetMapDefParser() in GetMapDefParser()
38 static TdfParser tdf(MapParser::GetMapConfigName(gameSetup->MapFile())); in GetMapDefParser()
/dports/games/spring/spring_98.0/rts/Net/
H A DGameServer.cpp321 TdfParser parser(newGameData->GetSetup().c_str(), newGameData->GetSetup().length()); in StripGameSetupText()
322 TdfParser::TdfSection* rootSec = parser.GetRootSection(); in StripGameSetupText()
324 …for (TdfParser::sectionsMap_t::iterator it = rootSec->sections.begin(); it != rootSec->sections.en… in StripGameSetupText()
330 TdfParser::TdfSection* playerSec = it->second; in StripGameSetupText()