35 #ifndef _LevelInfo_H__ 36 #define _LevelInfo_H__ 106 bool addTag(
const std::string& tag,
bool update =
true);
112 {
return this->tagsString_; }
118 inline bool hasTag(
const std::string& tag)
const {
return this->tags_.find(tag) != this->tags_.end(); }
121 bool addStartingShip(
const std::string& ship,
bool update =
true);
127 {
return this->startingShipsString_; }
153 void changeStartingShip (
const std::string& model);
154 void startingshipsUpdated(
void);
155 void tagsUpdated(
void);
156 static void initializeTags(
void);
166 static const bool initialized_s =
false;
The BaseObject is the parent of all classes representing an instance in the game. ...
Definition: BaseObject.h:63
void setStartingShips(const std::string &ships)
Set the starting ship models of the level.
Definition: LevelInfo.cc:120
const std::string & getName(void) const
Get the name of the Level.
Definition: LevelInfo.h:80
std::set< std::string > startingShips_
The set of starting ship models the Level allows.
Definition: LevelInfo.h:173
void setDescription(const std::string &description)
Set the description of the Level.
Definition: LevelInfo.h:225
std::string startingShipsString_
The comma-seperated string of all the allowed ship models for the shipselection.
Definition: LevelInfo.h:174
const std::string & getTags(void) const
Get the lis of the tags the Level is tagged with.
Definition: LevelInfo.h:111
void setTags(const std::string &tags)
Set the tags the Level is tagged with.
Definition: LevelInfo.h:238
std::string screenshot_
The screenshot of the Level.
Definition: LevelInfo.h:170
bool hasStartingShip(const std::string &ship) const
Get whether the Level allows a specific starting ship model.
Definition: LevelInfo.h:133
::std::string string
Definition: gtest-port.h:756
std::string description_
The description of the Level.
Definition: LevelInfo.h:169
void setScreenshot(const std::string &screenshot)
Set the screenshot of the Level.
Definition: LevelInfo.h:214
const std::string & getDescription() const
Get the description of the Level.
Definition: LevelInfo.h:231
This is the class from which all interfaces of the game-logic (not the engine) are derived from...
Definition: OrxonoxInterface.h:50
const std::string & getStartingShips(void) const
Get the starting ship models of the level.
Definition: LevelInfo.h:256
const std::string & getXMLFilename(void) const
Get the XML-filename of the Level.
Definition: LevelInfo.h:139
std::string getLowercase(const std::string &str)
Returns a copy of the given string where all chars are converted to lowercase.
Definition: StringUtils.cc:342
std::set< std::string > tags_
The set of tags the Level is tagged with.
Definition: LevelInfo.h:171
std::string name_
The name of the Level.
Definition: LevelInfo.h:168
std::string xmlfilename_
The XML-filename of the Level.
Definition: LevelInfo.h:150
void setDescription(const std::string &description)
Set the description of the Level.
Definition: LevelInfo.h:97
xmlelement
Definition: Super.h:519
static bool validateTag(const std::string &tag)
Check whether an input tag is allowed.
Definition: LevelInfo.h:162
const std::string & getStartingShips(void) const
Get the set of starting ship models the Level allows.
Definition: LevelInfo.h:126
void setXMLFilename(const std::string &filename)
Set the XML-filename of the Level.
Definition: LevelInfo.h:147
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Declaration of OrxonoxInterface, the base class of all interfaces in Orxonox.
Struct that overloads the compare operation between two LevelInfoItem pointers.
Definition: LevelInfo.h:268
Mode
Definition: CorePrereqs.h:102
const std::string & getDescription() const
Get the description of the Level.
Definition: LevelInfo.h:103
Shared library macros, enums, constants and forward declarations for the orxonox library ...
Declaration of BaseObject, the base class of all objects in Orxonox.
Declaration of several string manipulation functions, used in many parts of the game.
The LevelInfo class can be used to store information regarding a Level in its level file...
Definition: LevelInfo.h:202
void setName(const std::string &name)
Set the name of the Level.
Definition: LevelInfo.h:74
void setStartingShips(const std::string &ships)
Set the starting ship models of the level.
Definition: LevelInfo.h:250
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
static void initializeTags(void)
Initialize the set of allowed tags.
Definition: LevelInfo.cc:84
bool hasTag(const std::string &tag) const
Get whether the Level has a specific tag.
Definition: LevelInfo.h:118
void setScreenshot(const std::string &screenshot)
Set the screenshot of the Level.
Definition: LevelInfo.h:86
void setTags(const std::string &tags)
Set the tags the Level is tagged with.
Definition: LevelInfo.cc:105
The LevelInfoItem class stores information regarding a Level and makes that information accessible th...
Definition: LevelInfo.h:62
static std::set< std::string > possibleTags_s
The set of allowed tags.
Definition: LevelInfo.h:165
internal::String name_
Definition: gtest.cc:2289
const std::string & getScreenshot() const
Get the screenshot of the Level.
Definition: LevelInfo.h:91
const std::string & getTags(void) const
Get the lis of the tags the Level is tagged with.
Definition: LevelInfo.h:244
std::string tagsString_
The comma-seperated string of all the tags the Level is tagged with.
Definition: LevelInfo.h:172
void selectStartingShip(const std::string &ship)
Definition: LevelInfo.h:134
const std::string & getScreenshot() const
Get the screenshot of the Level.
Definition: LevelInfo.h:219