Changeset 8977 for code/branches/presentation2011/src/orxonox
- Timestamp:
- Dec 14, 2011, 2:12:11 PM (13 years ago)
- Location:
- code/branches/presentation2011
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2011
- Property svn:mergeinfo changed
/code/branches/menue (added) merged: 8884,8890,8894,8912,8914,8916,8927,8931,8938,8945,8958,8964,8975
- Property svn:mergeinfo changed
-
code/branches/presentation2011/src/orxonox/Level.cc
r8858 r8977 71 71 SUPER(Level, XMLPort, xmlelement, mode); 72 72 73 XMLPortParam(Level, "description", setDescription, getDescription, xmlelement, mode);74 73 XMLPortParam(Level, "gametype", setGametypeString, getGametypeString, xmlelement, mode).defaultValues("Gametype"); 75 74 … … 82 81 registerVariable(this->xmlfilename_, VariableDirection::ToClient, new NetworkCallback<Level>(this, &Level::networkcallback_applyXMLFile)); 83 82 registerVariable(this->name_, VariableDirection::ToClient, new NetworkCallback<Level>(this, &Level::changedName)); 84 registerVariable(this->description_, VariableDirection::ToClient);85 83 registerVariable(this->networkTemplateNames_, VariableDirection::ToClient, new NetworkCallback<Level>(this, &Level::networkCallbackTemplatesChanged)); 86 84 } -
code/branches/presentation2011/src/orxonox/Level.h
r7163 r8977 49 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 50 50 51 inline void setDescription(const std::string& description)52 { this->description_ = description; }53 inline const std::string& getDescription() const54 { return this->description_; }55 56 51 void playerEntered(PlayerInfo* player); 57 52 void playerLeft(PlayerInfo* player); … … 76 71 void networkcallback_applyXMLFile(); 77 72 78 std::string description_;79 73 std::string gametype_; 80 74 std::string xmlfilename_; -
code/branches/presentation2011/src/orxonox/LevelInfo.cc
r8858 r8977 87 87 { 88 88 LevelInfoItem::possibleTags_s.insert("test"); 89 LevelInfoItem::possibleTags_s.insert("singleplayer");90 LevelInfoItem::possibleTags_s.insert("multiplayer");91 89 LevelInfoItem::possibleTags_s.insert("showcase"); 92 90 LevelInfoItem::possibleTags_s.insert("tutorial"); 93 91 LevelInfoItem::possibleTags_s.insert("presentation"); 92 LevelInfoItem::possibleTags_s.insert("mission"); 93 LevelInfoItem::possibleTags_s.insert("gametype"); 94 LevelInfoItem::possibleTags_s.insert("minigame"); 94 95 } 95 96 } … … 189 190 190 191 XMLPortParam(LevelInfo, "description", setDescription, getDescription, xmlelement, mode); 192 XMLPortParam(LevelInfo, "screenshot", setScreenshot, getScreenshot, xmlelement, mode); 191 193 XMLPortParam(LevelInfo, "tags", setTags, getTags, xmlelement, mode); 192 194 } … … 203 205 LevelInfoItem* info = new LevelInfoItem(this->BaseObject::getName(), this->getXMLFilename()); 204 206 info->setDescription(this->getDescription()); 207 info->setScreenshot(this->getScreenshot()); 205 208 info->setTags(this->getTags()); 206 209 return info; -
code/branches/presentation2011/src/orxonox/LevelInfo.h
r8079 r8977 77 77 */ 78 78 inline const std::string& getName(void) const { return this->name_; } // tolua_export 79 80 /** 81 @brief Set the screenshot of the Level. 82 @param screenshot The screenshot to be set. 83 */ 84 inline void setScreenshot(const std::string& screenshot) { this->screenshot_ = std::string(screenshot); } 85 /** 86 @brief Get the screenshot of the Level. 87 @return Returns the screenshot of the Level. 88 */ 89 inline const std::string& getScreenshot() const { return this->screenshot_; } // tolua_export 79 90 80 91 /** … … 138 149 std::string name_; //!< The name of the Level. 139 150 std::string description_; //!< The description of the Level. 151 std::string screenshot_; //!< The screenshot of the Level. 140 152 std::set<std::string> tags_; //!< The set of tags the Level is tagged with. 141 153 std::string tagsString_; //!< The comma-seperated string of all the tags the Level is tagged with. … … 148 160 - @b name The name of the level. 149 161 - @b description The description of the level. 162 - @b screenshot The screenshot of the level. 150 163 - @b tags A comma-seperated string of tags. Allowed tags are: <em>test</em>, <em>singleplayer</em>, <em>multiplayer</em>, <em>showcase</em>, <em>tutorial</em>, <em>presentation</em>. 151 164 … … 155 168 name = "Levelname"lhs->compare(rhs) < 0 156 169 description = "This is just some awesome level." 170 screenshot = "Screenshot.png" 157 171 tags = "test, awesome" 158 172 /> … … 172 186 173 187 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Creates a LevelInfo object through XML. 188 189 /** 190 @brief Set the screenshot of the Level. 191 @param screenshot The screenshot to be set. 192 */ 193 inline void setScreenshot(const std::string& screenshot) { this->LevelInfoItem::setScreenshot(screenshot); } 194 /** 195 @brief Get the screenshot of the Level. 196 @return Returns the screenshot of the Level. 197 */ 198 inline const std::string& getScreenshot() const { return this->LevelInfoItem::getScreenshot(); } 174 199 175 200 /** -
code/branches/presentation2011/src/orxonox/worldentities/pawns/FpsPlayer.cc
r8858 r8977 270 270 } 271 271 272 void FpsPlayer::boost( ) //acctually jump272 void FpsPlayer::boost(bool bBoost) //acctually jump 273 273 { 274 274 if (this->isFloor_) -
code/branches/presentation2011/src/orxonox/worldentities/pawns/FpsPlayer.h
r7163 r8977 65 65 { return this->meshSrc_; } 66 66 67 void boost( ); //acctually jump67 void boost(bool bBoost); //acctually jump 68 68 69 69 virtual void fire();
Note: See TracChangeset
for help on using the changeset viewer.