TDME2  1.9.200
SceneEntity.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 #include <tdme/tdme.h>
6 #include <tdme/engine/fwd-tdme.h>
10 
11 using std::string;
12 
16 
17 /**
18  * Scene entity definition
19  * @author Andreas Drewke
20  */
22  : public BaseProperties
23 {
24 private:
26  Prototype* prototype { nullptr };
28 
29 public:
30  // forbid class copy
32 
33  /**
34  * Public constructor
35  * @param id id
36  * @param description description
37  * @param transform transform
38  * @param prototype prototype
39  */
40  SceneEntity(const string& id, const string& description, const Transform& transform, Prototype* prototype);
41 
42  /**
43  * Destructor
44  */
45  ~SceneEntity();
46 
47  /**
48  * @return id
49  */
50  inline const string& getId() {
51  return name;
52  }
53 
54  /**
55  * Set id
56  * @param id id
57  */
58  inline void setId(const string& id) {
59  this->name = name;
60  }
61 
62  /**
63  * @return description
64  */
65  inline const string& getDescription() {
66  return description;
67  }
68 
69  /**
70  * Set description
71  * @param description description
72  */
73  inline void setDescription(const string& description) {
74  this->description = description;
75  }
76 
77  /**
78  * @return transform
79  */
80  inline Transform& getTransform() {
81  return transform;
82  }
83 
84  /**
85  * @return prototype
86  */
87  inline Prototype* getPrototype() {
88  return prototype;
89  }
90 
91  /**
92  * Set up prototype
93  * @param prototype prototype
94  */
96  this->prototype = prototype;
97  }
98 
99  /**
100  * @return reflection environment mapping id
101  */
102  inline const string& getReflectionEnvironmentMappingId() {
104  }
105 
106  /**
107  * @return reflection environment mapping id
108  */
110  this->reflectionEnvironmentMappingId = reflectionEnvironmentMappingId;
111  }
112 
113  /**
114  * @return merged properties from entity and object
115  */
117 
118 };
Transform which contain scale, rotations and translation.
Definition: Transform.h:29
Prototype definition.
Definition: Prototype.h:55
Scene entity definition.
Definition: SceneEntity.h:23
const string & getReflectionEnvironmentMappingId()
Definition: SceneEntity.h:102
SceneEntity(const string &id, const string &description, const Transform &transform, Prototype *prototype)
Public constructor.
Definition: SceneEntity.cpp:19
const BaseProperties * getTotalProperties()
Definition: SceneEntity.cpp:28
void setId(const string &id)
Set id.
Definition: SceneEntity.h:58
void setReflectionEnvironmentMappingId(const string &reflectionEnvironmentMappingId)
Definition: SceneEntity.h:109
void setPrototype(Prototype *prototype)
Set up prototype.
Definition: SceneEntity.h:95
const string & getDescription()
Definition: SceneEntity.h:65
void setDescription(const string &description)
Set description.
Definition: SceneEntity.h:73
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6