Changeset 8958 for code/branches/menue/src/orxonox
- Timestamp:
- Dec 7, 2011, 2:21:24 PM (13 years ago)
- Location:
- code/branches/menue/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/menue/src/orxonox/Level.cc
r8858 r8958 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/menue/src/orxonox/Level.h
r7163 r8958 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_;
Note: See TracChangeset
for help on using the changeset viewer.