Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4382 in orxonox.OLD for orxonox/trunk/src/world_entities


Ignore:
Timestamp:
May 29, 2005, 9:04:17 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: BaseObject virtual public in PNode and Player(for test).
This is, so only one Object of type BaseObject is being created when deriving with multiple inheritance

@patrick: read it in a book at the lake today :)

Location:
orxonox/trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/player.h

    r4261 r4382  
    88
    99#include "world_entity.h"
     10#include "physics_interface.h"
    1011
    1112template<class T> class tList;
     
    1617
    1718//! Basic controllable WorldEntity
    18 class Player : public WorldEntity 
     19class Player : public WorldEntity, public PhysicsInterface
    1920{
    2021  friend class World;
  • orxonox/trunk/src/world_entities/test_gun.cc

    r4320 r4382  
    144144    }
    145145
    146   Projectile* pj = (TestBullet*)ObjectManager::getInstance()->getFromDeadList(CL_TEST_BULLET);
     146  Projectile* pj = dynamic_cast<TestBullet*>(ObjectManager::getInstance()->getFromDeadList(CL_TEST_BULLET));
    147147
    148148  //printf( "object ref %p\n", ObjectManager::getInstance()->getFromDeadList(CL_TEST_BULLET));
Note: See TracChangeset for help on using the changeset viewer.