Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4332 in orxonox.OLD for orxonox/branches/physics/src/world_entities


Ignore:
Timestamp:
May 27, 2005, 7:14:55 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/physics: merged the trunk back to the physics-branche
merged with command:
svn merge -r 4301:HEAD trunk/ branches/physics/
little conflict in particle-system resolved easily

Location:
orxonox/branches/physics/src/world_entities
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/physics/src/world_entities/camera.cc

    r4178 r4332  
    3333Camera::Camera(void)
    3434{
    35   this->setClassName("Camera");
     35  this->setClassID(CL_CAMERA, "Camera");
    3636  this->target = new CameraTarget();
    3737
     
    190190CameraTarget::CameraTarget()
    191191{
    192   this->setClassName("CameraTarget");
     192  this->setClassID(CL_CAMERA_TARGET, "CameraTarget");
    193193  this->setMode(PNODE_MOVEMENT);
    194194}
  • orxonox/branches/physics/src/world_entities/character_attributes.cc

    r3583 r4332  
    2929CharacterAttributes::CharacterAttributes ()
    3030{
    31    this->setClassName ("CharacterAttributes");
     31   this->setClassID(CL_CHARACTER_ATTRIBUTES, "CharacterAttributes");
    3232}
    3333
  • orxonox/branches/physics/src/world_entities/projectile.cc

    r3755 r4332  
    3333Projectile::Projectile (Weapon* weapon) : WorldEntity()
    3434{
     35  this->setClassID(CL_PROJECTILE, "Projectile");
    3536  this->weapon = weapon;
    3637  this->flightDirection = NULL;
  • orxonox/branches/physics/src/world_entities/satellite.cc

    r3750 r4332  
    3131Satellite::Satellite (Vector axis, float speed)
    3232{
    33   this->setClassName ("Satellite");
     33  this->setClassID(CL_SATELLITE, "Satellite");
    3434  this->model = (Model*) ResourceManager::getInstance()->load("cube", RP_LEVEL);
    3535  this->speed = speed;
  • orxonox/branches/physics/src/world_entities/skybox.cc

    r4283 r4332  
    6262void SkyBox::preInit(void)
    6363{
    64   this->setClassName("SkyBox");
     64  this->setClassID(CL_SKYBOX, "SkyBox");
    6565  this->skyModel = NULL;
    6666  this->material = new Material*[6];
  • orxonox/branches/physics/src/world_entities/terrain.cc

    r4178 r4332  
    7777void Terrain::init(void)
    7878{
    79   this->setClassName ("Terrain");
    80  
     79  this->setClassID(CL_TERRAIN, "Terrain");
    8180  this->objectList = 0;
    8281}
  • orxonox/branches/physics/src/world_entities/test_bullet.cc

    r3757 r4332  
    3333TestBullet::TestBullet (Weapon* weapon) : Projectile(weapon)
    3434{
     35  this->setClassID(CL_TEST_BULLET, "TestBullet");
    3536  this->model = (Model*)ResourceManager::getInstance()->load("models/test_projectile.obj", OBJ, RP_LEVEL);
    3637}
  • orxonox/branches/physics/src/world_entities/test_entity.cc

    r4283 r4332  
    2828TestEntity::TestEntity () : WorldEntity()
    2929
     30  this->setClassID(CL_TEST_ENTITY, "TestEntity");
    3031  this->md2Model = new MD2Model();
    3132  this->md2Model->loadModel(ResourceManager::getFullName("models/tris.md2"));
  • orxonox/branches/physics/src/world_entities/test_gun.cc

    r4301 r4332  
    4545  :  Weapon (parent, coordinate, direction)
    4646{
     47  this->setClassID(CL_TEST_GUN, "TestGun");
    4748  this->model = (Model*)ResourceManager::getInstance()->load("models/test_gun.obj", OBJ, RP_CAMPAIGN);
    4849  this->idleTime = 0.2f;
     
    8990    }
    9091
    91   BaseObject* p = new TestBullet(this);
    92   ObjectManager::getInstance()->cache(CL_TEST_BULLET, 100, *p);
     92  Projectile* p = new TestBullet(this);
     93  ObjectManager::getInstance()->cache(CL_TEST_BULLET, 100, p);
    9394  ObjectManager::getInstance()->debug();
    9495}
     
    143144    }
    144145
    145   Projectile* pj = new TestBullet(this);
     146  Projectile* pj = (TestBullet*)ObjectManager::getInstance()->getFromDeadList(CL_TEST_BULLET);
     147
     148  //printf( "object ref %p\n", ObjectManager::getInstance()->getFromDeadList(CL_TEST_BULLET));
     149
     150  //Projectile* pj = new TestBullet(this);
    146151  pj->setAbsCoor(this->getAbsCoor() + this->projectileOffset);
    147152  pj->setAbsDir(this->getAbsDir());
  • orxonox/branches/physics/src/world_entities/world_entity.cc

    r4283 r4332  
    3030WorldEntity::WorldEntity(const TiXmlElement* root)
    3131{
    32   this->setClassName ("WorldEntity");
     32  this->setClassID(CL_WORLD_ENTITY, "WorldEntity");
    3333  this->model = NULL;
    3434
Note: See TracChangeset for help on using the changeset viewer.