Changeset 4382 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- May 29, 2005, 9:04:17 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/p_node.h
r4372 r4382 45 45 46 46 //! Patent Node is a Engine to calculate the position of an Object in respect to the position of its parent. 47 class PNode : public BaseObject {47 class PNode : virtual public BaseObject { 48 48 49 49 public: -
orxonox/trunk/src/lib/lang/base_object.h
r4381 r4382 1 1 /*! 2 \file proto_class.h3 \brief Definition of the proto class template, used quickly start work2 \file base_object.h 3 \brief Definition of the base object class. that is a global handler for all classes. 4 4 */ 5 5 … … 10 10 #include "class_list.h" 11 11 12 //! A class all other classes are derived from 12 13 class BaseObject { 13 14 … … 20 21 void setClassID(int id, const char* className); 21 22 23 /** \returns the className of the corresponding Object */ 22 24 inline const char* getClassName(void) const { return this->className;}; 25 /** \returns the classID of the corresponding Object */ 23 26 inline int getClassID(void) const { return this->id; } 24 27 bool isA (char* className); 25 28 29 /** \returns if the object is finalized */ 26 30 inline bool isFinalized() { return this->finalized; } 27 31 void finalize(); -
orxonox/trunk/src/lib/physics/physics_interface.h
r4377 r4382 17 17 here can be some longer description of this class 18 18 */ 19 class PhysicsInterface : public BaseObject19 class PhysicsInterface : virtual public BaseObject 20 20 { 21 21 -
orxonox/trunk/src/story_entities/world.cc
r4349 r4382 381 381 while( element != NULL) 382 382 { 383 WorldEntity* created = (WorldEntity*) loader->fabricate( element);383 WorldEntity* created = dynamic_cast<WorldEntity*>( loader->fabricate( element)); 384 384 if( created != NULL) this->spawn( created); 385 385 // if we load a 'Player' we use it as localPlayer -
orxonox/trunk/src/world_entities/player.h
r4261 r4382 8 8 9 9 #include "world_entity.h" 10 #include "physics_interface.h" 10 11 11 12 template<class T> class tList; … … 16 17 17 18 //! Basic controllable WorldEntity 18 class Player : public WorldEntity 19 class Player : public WorldEntity, public PhysicsInterface 19 20 { 20 21 friend class World; -
orxonox/trunk/src/world_entities/test_gun.cc
r4320 r4382 144 144 } 145 145 146 Projectile* pj = (TestBullet*)ObjectManager::getInstance()->getFromDeadList(CL_TEST_BULLET);146 Projectile* pj = dynamic_cast<TestBullet*>(ObjectManager::getInstance()->getFromDeadList(CL_TEST_BULLET)); 147 147 148 148 //printf( "object ref %p\n", ObjectManager::getInstance()->getFromDeadList(CL_TEST_BULLET));
Note: See TracChangeset
for help on using the changeset viewer.