Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/ogreode/prefab/include/OgreOdePrefabObject.h @ 21

Last change on this file since 21 was 21, checked in by nicolasc, 16 years ago

added ogreode and Colladaplugin

File size: 850 bytes
Line 
1#ifndef _OGREODEPREFABOBJECT_H_
2#define _OGREODEPREFABOBJECT_H_
3
4#include "OgreOde_Prefab.h"
5
6namespace OgreOde_Prefab
7{
8
9    class _OgreOdeExport_Prefab Object
10    {
11        public:
12        Object(ObjectType type, OgreOde::World *world):
13          _type(type),
14          _world(world)
15        {
16              instanceNumber++;
17        }
18                virtual ~Object()
19        {
20            instanceNumber--;
21        }
22
23                OgreOde_Prefab::ObjectType getObjectType() const
24        {
25            return _type;
26        }
27
28                static unsigned int getInstanceNumber()
29                {
30                        return instanceNumber;
31                }
32
33        static unsigned int getInstanceNumberAndIncrement()
34        {
35            return instanceNumber++;
36        }
37
38        protected:
39                OgreOde_Prefab::ObjectType  _type;
40        OgreOde::World              *_world;
41
42        static unsigned int instanceNumber;
43        };
44}
45
46#endif
47
Note: See TracBrowser for help on using the repository browser.