Changeset 4332 in orxonox.OLD for orxonox/branches/physics/src/world_entities
- Timestamp:
- May 27, 2005, 7:14:55 PM (20 years ago)
- Location:
- orxonox/branches/physics/src/world_entities
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/world_entities/camera.cc
r4178 r4332 33 33 Camera::Camera(void) 34 34 { 35 this->setClass Name("Camera");35 this->setClassID(CL_CAMERA, "Camera"); 36 36 this->target = new CameraTarget(); 37 37 … … 190 190 CameraTarget::CameraTarget() 191 191 { 192 this->setClass Name("CameraTarget");192 this->setClassID(CL_CAMERA_TARGET, "CameraTarget"); 193 193 this->setMode(PNODE_MOVEMENT); 194 194 } -
orxonox/branches/physics/src/world_entities/character_attributes.cc
r3583 r4332 29 29 CharacterAttributes::CharacterAttributes () 30 30 { 31 this->setClass Name ("CharacterAttributes");31 this->setClassID(CL_CHARACTER_ATTRIBUTES, "CharacterAttributes"); 32 32 } 33 33 -
orxonox/branches/physics/src/world_entities/projectile.cc
r3755 r4332 33 33 Projectile::Projectile (Weapon* weapon) : WorldEntity() 34 34 { 35 this->setClassID(CL_PROJECTILE, "Projectile"); 35 36 this->weapon = weapon; 36 37 this->flightDirection = NULL; -
orxonox/branches/physics/src/world_entities/satellite.cc
r3750 r4332 31 31 Satellite::Satellite (Vector axis, float speed) 32 32 { 33 this->setClass Name ("Satellite");33 this->setClassID(CL_SATELLITE, "Satellite"); 34 34 this->model = (Model*) ResourceManager::getInstance()->load("cube", RP_LEVEL); 35 35 this->speed = speed; -
orxonox/branches/physics/src/world_entities/skybox.cc
r4283 r4332 62 62 void SkyBox::preInit(void) 63 63 { 64 this->setClass Name("SkyBox");64 this->setClassID(CL_SKYBOX, "SkyBox"); 65 65 this->skyModel = NULL; 66 66 this->material = new Material*[6]; -
orxonox/branches/physics/src/world_entities/terrain.cc
r4178 r4332 77 77 void Terrain::init(void) 78 78 { 79 this->setClassName ("Terrain"); 80 79 this->setClassID(CL_TERRAIN, "Terrain"); 81 80 this->objectList = 0; 82 81 } -
orxonox/branches/physics/src/world_entities/test_bullet.cc
r3757 r4332 33 33 TestBullet::TestBullet (Weapon* weapon) : Projectile(weapon) 34 34 { 35 this->setClassID(CL_TEST_BULLET, "TestBullet"); 35 36 this->model = (Model*)ResourceManager::getInstance()->load("models/test_projectile.obj", OBJ, RP_LEVEL); 36 37 } -
orxonox/branches/physics/src/world_entities/test_entity.cc
r4283 r4332 28 28 TestEntity::TestEntity () : WorldEntity() 29 29 { 30 this->setClassID(CL_TEST_ENTITY, "TestEntity"); 30 31 this->md2Model = new MD2Model(); 31 32 this->md2Model->loadModel(ResourceManager::getFullName("models/tris.md2")); -
orxonox/branches/physics/src/world_entities/test_gun.cc
r4301 r4332 45 45 : Weapon (parent, coordinate, direction) 46 46 { 47 this->setClassID(CL_TEST_GUN, "TestGun"); 47 48 this->model = (Model*)ResourceManager::getInstance()->load("models/test_gun.obj", OBJ, RP_CAMPAIGN); 48 49 this->idleTime = 0.2f; … … 89 90 } 90 91 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); 93 94 ObjectManager::getInstance()->debug(); 94 95 } … … 143 144 } 144 145 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); 146 151 pj->setAbsCoor(this->getAbsCoor() + this->projectileOffset); 147 152 pj->setAbsDir(this->getAbsDir()); -
orxonox/branches/physics/src/world_entities/world_entity.cc
r4283 r4332 30 30 WorldEntity::WorldEntity(const TiXmlElement* root) 31 31 { 32 this->setClass Name ("WorldEntity");32 this->setClassID(CL_WORLD_ENTITY, "WorldEntity"); 33 33 this->model = NULL; 34 34
Note: See TracChangeset
for help on using the changeset viewer.