Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN/src/orxonox/objects/Model.h @ 660

Last change on this file since 660 was 646, checked in by landauf, 17 years ago
  • added very bad collision detection (presentation hack :D)
  • added explosions
  • fixed bug in ParticleInterface (it tried to delete SceneManager)

AND:

  • fixed one of the most amazing bugs ever! (the game crashed when I deleted an object through a timer-function. because the timer-functions is called by an iterator, the iterator indirectly delted its object. by overloading the (it++) operator, i was able to solve this problem)
File size: 494 bytes
RevLine 
[576]1#ifndef _Model_H__
2#define _Model_H__
3
4#include "WorldEntity.h"
5#include "Mesh.h"
6#include "../../tinyxml/tinyxml.h"
7
8namespace orxonox
9{
10    class Model : public WorldEntity
11    {
12        public:
13            Model();
[646]14            virtual ~Model();
[576]15            virtual void loadParams(TiXmlElement* xmlElem);
[630]16            bool create();
[576]17
18        private:
[630]19            std::string meshSrc_;
[576]20            Mesh mesh_;
[630]21            void registerAllVariables();
[576]22    };
23}
24
25#endif
Note: See TracBrowser for help on using the repository browser.