Last change
on this file since 11819 was
11675,
checked in by fanconic, 7 years ago
|
renamed storymodeplanet to NameableStaticEntity
|
File size:
958 bytes
|
Line | |
---|
1 | /* |
---|
2 | *This is the header of the NameableStaticEntity.cc file |
---|
3 | *In this file we define a constructor, destructor and additional function (which is important to name a planet) |
---|
4 | * |
---|
5 | *Author: Bolt Nikole |
---|
6 | *Co-Author: Fanconi Claudio |
---|
7 | * |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef _NameableStaticEntity_H__ |
---|
11 | #define _NameableStaticEntity_H__ |
---|
12 | |
---|
13 | #include "core/CoreIncludes.h" |
---|
14 | #include "core/XMLPort.h" |
---|
15 | #include "worldentities/StaticEntity.h" |
---|
16 | |
---|
17 | namespace orxonox |
---|
18 | { |
---|
19 | class _OrxonoxExport NameableStaticEntity : public StaticEntity |
---|
20 | { |
---|
21 | public: |
---|
22 | NameableStaticEntity(Context* context); |
---|
23 | virtual ~NameableStaticEntity(); |
---|
24 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; |
---|
25 | |
---|
26 | inline void setLevelName(const std::string& levelname) |
---|
27 | { this->levelName_ = levelname; } |
---|
28 | |
---|
29 | inline const std::string& getLevelName() |
---|
30 | { return this->levelName_; } |
---|
31 | |
---|
32 | private: |
---|
33 | std::string levelName_; |
---|
34 | }; |
---|
35 | } |
---|
36 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.