Changeset 7802 for code/trunk/src/orxonox/LevelInfo.h
- Timestamp:
- Dec 25, 2010, 8:51:17 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/LevelInfo.h
r7652 r7802 40 40 #include <set> 41 41 #include <string> 42 #include "util/StringUtils.h" 42 43 43 44 #include "core/BaseObject.h" … … 73 74 @return Returns the name of the Level. 74 75 */ 75 inline const std::string& getName(void) { return this->name_; } // tolua_export76 inline const std::string& getName(void) const { return this->name_; } // tolua_export 76 77 77 78 /** … … 150 151 @code 151 152 <LevelInfo 152 name = "Levelname" 153 name = "Levelname"lhs->compare(rhs) < 0 153 154 description = "This is just some awesome level." 154 155 tags = "test, awesome" … … 197 198 198 199 }; 200 201 /** 202 @brief 203 Struct that overloads the compare operation between two @ref orxonox::LevelInfoItem "LevelInfoItem" pointers. 204 */ 205 struct LevelInfoCompare 206 { 207 bool operator() (const LevelInfoItem* lhs, const LevelInfoItem* rhs) const 208 { return getLowercase(lhs->getName()).compare(getLowercase(rhs->getName())) < 0; } 209 }; 210 199 211 } // tolua_export 200 212
Note: See TracChangeset
for help on using the changeset viewer.