|
Last change
on this file since 970 was
927,
checked in by scheusso, 18 years ago
|
|
Made various changes to Classes WorldEntity, Model, SpaceShip,
BulletManager and AmmunitionDump in order to make them really
synchronisable.
I hope, that everythings still working now. I only did some small tests
(ie no segfault when running/starting and acting)
|
|
File size:
741 bytes
|
| Line | |
|---|
| 1 | #ifndef _Model_H__ |
|---|
| 2 | #define _Model_H__ |
|---|
| 3 | |
|---|
| 4 | #include "../OrxonoxPrereqs.h" |
|---|
| 5 | |
|---|
| 6 | #include "WorldEntity.h" |
|---|
| 7 | #include "../tools/Mesh.h" |
|---|
| 8 | |
|---|
| 9 | class TiXmlElement; // Forward declaration |
|---|
| 10 | |
|---|
| 11 | namespace orxonox |
|---|
| 12 | { |
|---|
| 13 | |
|---|
| 14 | class _OrxonoxExport Model : public WorldEntity |
|---|
| 15 | { |
|---|
| 16 | public: |
|---|
| 17 | Model(); |
|---|
| 18 | virtual ~Model(); |
|---|
| 19 | virtual void loadParams(TiXmlElement* xmlElem); |
|---|
| 20 | virtual void XMLPort(Element& xmlelement, bool loading); |
|---|
| 21 | void setMesh(const std::string& meshname); |
|---|
| 22 | bool create(); |
|---|
| 23 | |
|---|
| 24 | protected: |
|---|
| 25 | void registerAllVariables(); |
|---|
| 26 | |
|---|
| 27 | private: |
|---|
| 28 | std::string meshSrc_; |
|---|
| 29 | Mesh mesh_; |
|---|
| 30 | }; |
|---|
| 31 | } |
|---|
| 32 | |
|---|
| 33 | #endif /* _Model_H__ */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.