Changeset 10114 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Dec 19, 2006, 11:55:26 PM (18 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 72 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/bsp_entity.cc
r9869 r10114 19 19 #include "loading/resource_manager.h" 20 20 21 #include "class_id_DEPRECATED.h" 22 ObjectListDefinition ID(BspEntity, CL_BSP_ENTITY);21 22 ObjectListDefinition(BspEntity); 23 23 CREATE_FACTORY(BspEntity); 24 24 -
trunk/src/world_entities/creatures/fps_player.cc
r10013 r10114 41 41 42 42 43 #include "class_id_DEPRECATED.h" 44 ObjectListDefinition ID(FPSPlayer, CL_FPS_PLAYER);43 44 ObjectListDefinition(FPSPlayer); 45 45 CREATE_FACTORY(FPSPlayer); 46 46 … … 273 273 { 274 274 this->getWeaponManager().fire(); 275 276 // WorldEntity* target = this->aimingSystem->getNearestTarget();277 // if( target != NULL)278 // {279 // PRINTF(0)("hit hit hit, got: %s\n", target->getClassCName());280 // }281 // else282 // {283 // PRINTF(0)("nothing hit\n");284 // }285 275 } 286 276 287 277 288 278 //dealing damage 289 290 279 if ( State::isOnline() && (SharedNetworkData::getInstance()->isMasterServer() /*|| SharedNetworkData::getInstance()->isProxyServerActive()*/)) 291 280 { … … 384 373 385 374 // physical falling of the player 386 if( !this->isOnGround())375 if( /*FIXME for testing*/ false && !this->isOnGround()) 387 376 { 388 377 this->fallVelocity += 300.0f * time; … … 404 393 405 394 406 if( likely(this->getModel(0) != NULL) && this->getModel(0)->isA( CL_INTERACTIVE_MODEL))395 if( likely(this->getModel(0) != NULL) && this->getModel(0)->isA(InteractiveModel::staticClassID())) 407 396 { 408 397 ((InteractiveModel*)this->getModel(0))->tick(time); 409 410 // handle animations differently411 412 413 414 415 416 // else if( this->bFire && likely(this->getModel(0) != NULL))417 // {418 // if( ((InteractiveModel*)this->getModel(0))->getAnim() != ATTACK)419 // ((InteractiveModel*)this->getModel(0))->setAnimation(ATTACK);420 // }421 // else if( fabs(move.len()) > 0.0f && likely(this->getModel(0) != NULL))422 // {423 // if( ((InteractiveModel*)this->getModel(0))->getAnim() != RUN)424 // ((InteractiveModel*)this->getModel(0))->setAnimation(RUN);425 // }426 // else if (likely(this->getModel(0) != NULL))427 // {428 // if( ((InteractiveModel*)this->getModel(0))->getAnimation() != STAND)429 // ((InteractiveModel*)this->getModel(0))->setAnimation(STAND);430 // }431 398 } 432 399 -
trunk/src/world_entities/creatures/md2_creature.cc
r10033 r10114 36 36 #include "debug.h" 37 37 38 #include "class_id_DEPRECATED.h" 39 ObjectListDefinition ID(MD2Creature, CL_MD2_CREATURE);38 39 ObjectListDefinition(MD2Creature); 40 40 CREATE_FACTORY(MD2Creature); 41 41 -
trunk/src/world_entities/effects/billboard.cc
r9869 r10114 26 26 27 27 28 #include "class_id_DEPRECATED.h" 29 ObjectListDefinition ID(Billboard, CL_BILLBOARD);28 29 ObjectListDefinition(Billboard); 30 30 CREATE_FACTORY(Billboard); 31 31 -
trunk/src/world_entities/effects/explosion.cc
r9869 r10114 27 27 28 28 29 #include "class_id_DEPRECATED.h" 30 ObjectListDefinition ID(Explosion, CL_EXPLOSION);29 30 ObjectListDefinition(Explosion); 31 31 CREATE_FAST_FACTORY_STATIC(Explosion); 32 32 -
trunk/src/world_entities/effects/lightning_bolt.cc
r9869 r10114 25 25 26 26 27 #include "class_id_DEPRECATED.h" 28 ObjectListDefinition ID(LightningBolt, CL_LIGHTNING_BOLT);27 28 ObjectListDefinition(LightningBolt); 29 29 CREATE_FACTORY(LightningBolt); 30 30 -
trunk/src/world_entities/elements/image_entity.cc
r9869 r10114 30 30 31 31 32 #include "class_id_DEPRECATED.h" 33 ObjectListDefinition ID(ImageEntity, CL_IMAGE_ENTITY);32 33 ObjectListDefinition(ImageEntity); 34 34 CREATE_FACTORY(ImageEntity); 35 35 -
trunk/src/world_entities/elements/text_element.cc
r9869 r10114 27 27 28 28 29 #include "class_id_DEPRECATED.h" 30 ObjectListDefinition ID(TextElement, CL_TEXT_ELEMENT);29 30 ObjectListDefinition(TextElement); 31 31 CREATE_FACTORY(TextElement); 32 32 -
trunk/src/world_entities/environment.cc
r10033 r10114 24 24 #include "util/loading/factory.h" 25 25 26 #include "class_id_DEPRECATED.h" 27 ObjectListDefinition ID(Environment, CL_ENVIRONMENT);26 27 ObjectListDefinition(Environment); 28 28 CREATE_FACTORY(Environment); 29 29 -
trunk/src/world_entities/environments/building.cc
r9869 r10114 23 23 24 24 25 #include "class_id_DEPRECATED.h" 26 ObjectListDefinition ID(Building, CL_BUILDING);25 26 ObjectListDefinition(Building); 27 27 CREATE_FACTORY(Building); 28 28 -
trunk/src/world_entities/environments/mapped_water.cc
r10034 r10114 26 26 #include "resource_shader.h" 27 27 28 #include "class_id_DEPRECATED.h" 29 ObjectListDefinition ID(MappedWater, CL_MAPPED_WATER);28 29 ObjectListDefinition(MappedWater); 30 30 CREATE_FACTORY(MappedWater); 31 31 -
trunk/src/world_entities/environments/model_entity.cc
r9869 r10114 23 23 24 24 25 #include "class_id_DEPRECATED.h" 26 ObjectListDefinition ID(ModelEntity, CL_MODEL_ENTITY);25 26 ObjectListDefinition(ModelEntity); 27 27 CREATE_FACTORY(ModelEntity); 28 28 -
trunk/src/world_entities/environments/water.cc
r9869 r10114 32 32 33 33 34 #include "class_id_DEPRECATED.h" 35 ObjectListDefinition ID(Water, CL_WATER);34 35 ObjectListDefinition(Water); 36 36 CREATE_FACTORY(Water); 37 37 -
trunk/src/world_entities/movie_entity.cc
r9869 r10114 21 21 22 22 23 #include "class_id_DEPRECATED.h" 24 ObjectListDefinition ID(MovieEntity, CL_MOVIE_ENTITY);23 24 ObjectListDefinition(MovieEntity); 25 25 CREATE_FACTORY(MovieEntity); 26 26 -
trunk/src/world_entities/npcs/attractor_mine.cc
r10013 r10114 33 33 #include "effects/explosion.h" 34 34 35 #include "class_id_DEPRECATED.h" 36 ObjectListDefinition ID(AttractorMine, CL_ATTRACTOR_MINE);35 36 ObjectListDefinition(AttractorMine); 37 37 CREATE_FACTORY(AttractorMine); 38 38 #include "script_class.h" -
trunk/src/world_entities/npcs/door.cc
r9869 r10114 26 26 #include "door.h" 27 27 28 #include "class_id_DEPRECATED.h" 29 ObjectListDefinition ID(Door, CL_DOOR);28 29 ObjectListDefinition(Door); 30 30 CREATE_FACTORY(Door); 31 31 -
trunk/src/world_entities/npcs/gate.cc
r9869 r10114 31 31 32 32 33 #include "class_id_DEPRECATED.h" 34 ObjectListDefinition ID(Gate, CL_GATE);33 34 ObjectListDefinition(Gate); 35 35 CREATE_FACTORY(Gate); 36 36 -
trunk/src/world_entities/npcs/generic_npc.cc
r10013 r10114 33 33 #include "bsp_entity.h" 34 34 35 #include "class_id_DEPRECATED.h" 36 ObjectListDefinition ID(GenericNPC, CL_GENERIC_NPC);35 36 ObjectListDefinition(GenericNPC); 37 37 CREATE_FACTORY(GenericNPC); 38 38 -
trunk/src/world_entities/npcs/ground_turret.cc
r9869 r10114 29 29 #include "effects/explosion.h" 30 30 31 #include "class_id_DEPRECATED.h"32 31 33 ObjectListDefinitionID(GroundTurret, CL_GROUND_TURRET); 32 33 ObjectListDefinition(GroundTurret); 34 34 CREATE_FACTORY(GroundTurret); 35 35 -
trunk/src/world_entities/npcs/network_turret.cc
r9869 r10114 32 32 #include "debug.h" 33 33 34 #include "class_id_DEPRECATED.h" 35 ObjectListDefinition ID(NetworkTurret, CL_NETWORK_TURRET);34 35 ObjectListDefinition(NetworkTurret); 36 36 CREATE_FACTORY(NetworkTurret); 37 37 -
trunk/src/world_entities/npcs/npc_test.cc
r9869 r10114 30 30 #include "effects/explosion.h" 31 31 32 #include "class_id_DEPRECATED.h" 33 ObjectListDefinition ID(NPC2, CL_NPC_TEST2);32 33 ObjectListDefinition(NPC2); 34 34 CREATE_FACTORY(NPC2); 35 35 -
trunk/src/world_entities/npcs/repair_station.cc
r9869 r10114 26 26 #include "repair_station.h" 27 27 28 #include "class_id_DEPRECATED.h" 29 ObjectListDefinition ID(RepairStation, CL_DOOR +1);28 29 ObjectListDefinition(RepairStation); 30 30 CREATE_FACTORY(RepairStation); 31 31 -
trunk/src/world_entities/npcs/space_turret.cc
r9869 r10114 29 29 #include "effects/explosion.h" 30 30 31 #include "class_id_DEPRECATED.h" 32 ObjectListDefinition ID(SpaceTurret, CL_SPACE_TURRET);31 32 ObjectListDefinition(SpaceTurret); 33 33 CREATE_FACTORY(SpaceTurret); 34 34 -
trunk/src/world_entities/particles/box_emitter.cc
r9869 r10114 24 24 #include "debug.h" 25 25 26 #include "class_id_DEPRECATED.h"27 26 28 ObjectListDefinitionID(BoxEmitter, CL_BOX_EMITTER); 27 28 ObjectListDefinition(BoxEmitter); 29 29 CREATE_FACTORY(BoxEmitter); 30 30 -
trunk/src/world_entities/particles/dot_emitter.cc
r9869 r10114 26 26 27 27 28 #include "class_id_DEPRECATED.h" 29 ObjectListDefinition ID(DotEmitter, CL_DOT_EMITTER);28 29 ObjectListDefinition(DotEmitter); 30 30 CREATE_FACTORY(DotEmitter); 31 31 -
trunk/src/world_entities/particles/dot_particles.cc
r9869 r10114 23 23 #include "state.h" 24 24 25 #include "class_id_DEPRECATED.h"26 25 27 ObjectListDefinitionID(DotParticles, CL_DOT_PARTICLES); 26 27 ObjectListDefinition(DotParticles); 28 28 CREATE_FACTORY(DotParticles); 29 29 -
trunk/src/world_entities/particles/model_particles.cc
r9869 r10114 25 25 #include "debug.h" 26 26 27 #include "class_id_DEPRECATED.h"28 27 29 ObjectListDefinitionID(ModelParticles, CL_MODEL_PARTICLES); 28 29 ObjectListDefinition(ModelParticles); 30 30 CREATE_FACTORY(ModelParticles); 31 31 -
trunk/src/world_entities/particles/plane_emitter.cc
r9869 r10114 24 24 #include "debug.h" 25 25 26 #include "class_id_DEPRECATED.h"27 26 28 ObjectListDefinitionID(PlaneEmitter, CL_PLANE_EMITTER); 27 28 ObjectListDefinition(PlaneEmitter); 29 29 CREATE_FACTORY(PlaneEmitter); 30 30 -
trunk/src/world_entities/particles/spark_particles.cc
r9869 r10114 24 24 #include "shell_command.h" 25 25 26 #include "class_id_DEPRECATED.h"27 26 28 ObjectListDefinitionID(SparkParticles, CL_SPARK_PARTICLES); 27 28 ObjectListDefinition(SparkParticles); 29 29 CREATE_FACTORY(SparkParticles); 30 30 -
trunk/src/world_entities/particles/sprite_particles.cc
r9869 r10114 24 24 #include "shell_command.h" 25 25 26 #include "class_id_DEPRECATED.h"27 26 28 ObjectListDefinitionID(SpriteParticles, CL_SPRITE_PARTICLES); 27 28 ObjectListDefinition(SpriteParticles); 29 29 CREATE_FACTORY(SpriteParticles); 30 30 -
trunk/src/world_entities/planet.cc
r9869 r10114 32 32 #include "debug.h" 33 33 34 #include "class_id_DEPRECATED.h" 35 ObjectListDefinition ID(Planet, CL_PLANET);34 35 ObjectListDefinition(Planet); 36 36 CREATE_FACTORY(Planet); 37 37 -
trunk/src/world_entities/power_ups/laser_power_up.cc
r9869 r10114 24 24 25 25 26 #include "class_id_DEPRECATED.h" 27 ObjectListDefinition ID(LaserPowerUp, CL_LASER_POWER_UP);26 27 ObjectListDefinition(LaserPowerUp); 28 28 CREATE_FACTORY(LaserPowerUp); 29 29 … … 80 80 { 81 81 // PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getClassCName(), entity->getClassCName(), location.x, location.y, location.z); 82 if (entity->isA(CL_PLAYABLE))82 if (entity->isA(Playable::staticClassID())) 83 83 this->toList(OM_DEAD); 84 84 } -
trunk/src/world_entities/power_ups/param_power_up.cc
r9869 r10114 27 27 28 28 29 #include "class_id_DEPRECATED.h" 30 ObjectListDefinition ID(ParamPowerUp, CL_PARAM_POWER_UP);29 30 ObjectListDefinition(ParamPowerUp); 31 31 CREATE_FACTORY(ParamPowerUp); 32 32 -
trunk/src/world_entities/power_ups/turret_power_up.cc
r9869 r10114 24 24 25 25 26 #include "class_id_DEPRECATED.h" 27 ObjectListDefinition ID(TurretPowerUp, CL_TURRET_POWER_UP);26 27 ObjectListDefinition(TurretPowerUp); 28 28 CREATE_FACTORY(TurretPowerUp); 29 29 … … 76 76 { 77 77 // PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getClassCName(), entity->getClassCName(), location.x, location.y, location.z); 78 if (entity->isA(CL_PLAYABLE))78 if (entity->isA(Playable::staticClassID())) 79 79 this->toList(OM_DEAD); 80 80 } -
trunk/src/world_entities/power_ups/weapon_power_up.cc
r9869 r10114 27 27 #include "debug.h" 28 28 29 #include "class_id_DEPRECATED.h" 30 ObjectListDefinition ID(WeaponPowerUp, CL_WEAPON_POWER_UP);29 30 ObjectListDefinition(WeaponPowerUp); 31 31 CREATE_FACTORY(WeaponPowerUp); 32 32 -
trunk/src/world_entities/projectiles/bomb.cc
r9869 r10114 25 25 #include "debug.h" 26 26 27 #include "class_id_DEPRECATED.h" 28 ObjectListDefinition ID(Bomb, CL_BOMB);27 28 ObjectListDefinition(Bomb); 29 29 CREATE_FAST_FACTORY_STATIC(Bomb); 30 30 … … 166 166 void Bomb::collidesWith (WorldEntity* entity, const Vector& location) 167 167 { 168 if (this->lifeCycle < .9f && entity->isA( CL_NPC))168 if (this->lifeCycle < .9f && entity->isA( "NPC" )) 169 169 this->lifeCycle = 0.9f; 170 170 } -
trunk/src/world_entities/projectiles/boomerang_projectile.cc
r9869 r10114 26 26 #include "debug.h" 27 27 28 #include "class_id_DEPRECATED.h" 29 ObjectListDefinition ID(BoomerangProjectile, CL_BOOMERANG_PROJECTILE);28 29 ObjectListDefinition(BoomerangProjectile); 30 30 CREATE_FAST_FACTORY_STATIC(BoomerangProjectile); 31 31 -
trunk/src/world_entities/projectiles/guided_missile.cc
r9869 r10114 25 25 #include "debug.h" 26 26 27 #include "class_id_DEPRECATED.h" 28 ObjectListDefinition ID(GuidedMissile, CL_GUIDED_MISSILE);27 28 ObjectListDefinition(GuidedMissile); 29 29 CREATE_FAST_FACTORY_STATIC(GuidedMissile); 30 30 -
trunk/src/world_entities/projectiles/hyperblast.cc
r9869 r10114 25 25 #include "debug.h" 26 26 27 #include "class_id_DEPRECATED.h" 28 ObjectListDefinition ID(Hyperblast, CL_HYPERBLAST);27 28 ObjectListDefinition(Hyperblast); 29 29 CREATE_FAST_FACTORY_STATIC(Hyperblast); 30 30 -
trunk/src/world_entities/projectiles/laser.cc
r9869 r10114 28 28 29 29 30 #include "class_id_DEPRECATED.h" 30 31 31 ObjectListDefinition(Laser); 32 32 CREATE_FAST_FACTORY_STATIC(Laser); … … 107 107 void Laser::collidesWith(WorldEntity* entity, const Vector& location) 108 108 { 109 if (this->hitEntity != entity && entity->isA( CL_NPC))109 if (this->hitEntity != entity && entity->isA( "NPC" )) 110 110 this->destroy( entity ); 111 111 this->hitEntity = entity; -
trunk/src/world_entities/projectiles/rail_projectile.cc
r9869 r10114 28 28 29 29 30 #include "class_id_DEPRECATED.h" 31 ObjectListDefinition ID(RailProjectile, CL_RAIL_PROJECTILE);30 31 ObjectListDefinition(RailProjectile); 32 32 CREATE_FAST_FACTORY_STATIC(RailProjectile); 33 33 … … 106 106 void RailProjectile::collidesWith(WorldEntity* entity, const Vector& location) 107 107 { 108 if (this->hitEntity != entity && entity->isA( CL_NPC))108 if (this->hitEntity != entity && entity->isA( "NPC" )) 109 109 this->destroy( entity ); 110 110 this->hitEntity = entity; -
trunk/src/world_entities/projectiles/rocket.cc
r9869 r10114 25 25 #include "debug.h" 26 26 27 #include "class_id_DEPRECATED.h" 28 ObjectListDefinition ID(Rocket, CL_ROCKET);27 28 ObjectListDefinition(Rocket); 29 29 CREATE_FAST_FACTORY_STATIC(Rocket); 30 30 -
trunk/src/world_entities/projectiles/test_bullet.cc
r9869 r10114 24 24 #include "debug.h" 25 25 26 #include "class_id_DEPRECATED.h" 27 ObjectListDefinition ID(TestBullet, CL_TEST_BULLET);26 27 ObjectListDefinition(TestBullet); 28 28 CREATE_FAST_FACTORY_STATIC(TestBullet); 29 29 … … 119 119 void TestBullet::collidesWith(WorldEntity* entity, const Vector& location) 120 120 { 121 if (this->hitEntity != entity && entity->isA( CL_NPC))121 if (this->hitEntity != entity && entity->isA( "NPC" )) 122 122 this->destroy( entity ); 123 123 this->hitEntity = entity; -
trunk/src/world_entities/recorder.cc
r9869 r10114 21 21 #include "debug.h" 22 22 23 #include "class_id_DEPRECATED.h" 24 ObjectListDefinition ID(Recorder, CL_RECORDER);23 24 ObjectListDefinition(Recorder); 25 25 CREATE_FACTORY(Recorder); 26 26 -
trunk/src/world_entities/skybox.cc
r9869 r10114 31 31 #include "debug.h" 32 32 33 #include "class_id_DEPRECATED.h" 34 ObjectListDefinition ID(SkyBox, CL_SKYBOX);33 34 ObjectListDefinition(SkyBox); 35 35 CREATE_FACTORY(SkyBox); 36 36 -
trunk/src/world_entities/space_ships/collision_probe.cc
r9869 r10114 24 24 25 25 26 #include "class_id_DEPRECATED.h" 27 ObjectListDefinition ID(CollisionProbe, CL_COLLISION_PROBE);26 27 ObjectListDefinition(CollisionProbe); 28 28 29 29 CREATE_FACTORY(CollisionProbe); -
trunk/src/world_entities/space_ships/cruizer.cc
r9869 r10114 34 34 #include "debug.h" 35 35 36 #include "class_id_DEPRECATED.h" 37 ObjectListDefinition ID(Cruizer, CL_CRUIZER);36 37 ObjectListDefinition(Cruizer); 38 38 CREATE_FACTORY(Cruizer); 39 39 -
trunk/src/world_entities/space_ships/helicopter.cc
r9869 r10114 34 34 #include "debug.h" 35 35 36 #include "class_id_DEPRECATED.h" 37 ObjectListDefinition ID(Helicopter, CL_HELICOPTER);36 37 ObjectListDefinition(Helicopter); 38 38 CREATE_FACTORY(Helicopter); 39 39 #include "script_class.h" -
trunk/src/world_entities/space_ships/hover.cc
r9869 r10114 34 34 #include "debug.h" 35 35 36 #include "class_id_DEPRECATED.h" 37 ObjectListDefinition ID(Hover, CL_HOVER);36 37 ObjectListDefinition(Hover); 38 38 CREATE_FACTORY(Hover); 39 39 -
trunk/src/world_entities/space_ships/space_ship.cc
r9869 r10114 53 53 54 54 55 #include "class_id_DEPRECATED.h" 56 ObjectListDefinition ID(SpaceShip, CL_SPACE_SHIP);55 56 ObjectListDefinition(SpaceShip); 57 57 CREATE_FACTORY(SpaceShip); 58 58 -
trunk/src/world_entities/space_ships/spacecraft_2d.cc
r10013 r10114 38 38 39 39 40 #include "class_id_DEPRECATED.h" 41 ObjectListDefinition ID(Spacecraft2D, CL_SPACECRAFT_2D);40 41 ObjectListDefinition(Spacecraft2D); 42 42 CREATE_FACTORY(Spacecraft2D); 43 43 -
trunk/src/world_entities/space_ships/turbine_hover.cc
r9869 r10114 34 34 #include "debug.h" 35 35 36 #include "class_id_DEPRECATED.h" 37 ObjectListDefinition ID(TurbineHover, CL_TURBINE_HOVER);36 37 ObjectListDefinition(TurbineHover); 38 38 CREATE_FACTORY(TurbineHover); 39 39 -
trunk/src/world_entities/spawning_point.cc
r9869 r10114 33 33 #include "converter.h" 34 34 35 #include "class_id_DEPRECATED.h" 36 ObjectListDefinition ID(SpawningPoint, CL_SPAWNING_POINT);35 36 ObjectListDefinition(SpawningPoint); 37 37 CREATE_FACTORY( SpawningPoint); 38 38 /** -
trunk/src/world_entities/spectator.cc
r10108 r10114 22 22 #include "shared_network_data.h" 23 23 24 #include "class_id_DEPRECATED.h" 25 ObjectListDefinitionID(Spectator, CL_SPECTATOR); 24 #include "src/world_entities/creatures/fps_player.h" 25 #include "src/world_entities/npcs/generic_npc.h" 26 27 28 ObjectListDefinition(Spectator); 26 29 CREATE_FACTORY(Spectator); 27 30 … … 83 86 registerEvent(KeyMapper::PEV_RIGHT); 84 87 registerEvent(KeyMapper::PEV_FIRE1); 88 registerEvent(KeyMapper::PEV_JUMP); 85 89 registerEvent(EV_MOUSE_MOTION); 86 90 … … 233 237 this->yMouse += event.yRel; 234 238 } 235 } 236 237 238 239 239 else if( event.type == KeyMapper::PEV_JUMP) 240 { 241 // FPSPlayer * fps = new FPSPlayer(); 242 //GenericNPC* fps = new GenericNPC(); 243 WorldEntity* fps = new WorldEntity(); 244 //WorldEntity * fps = new WorldEntity(); 245 246 fps->setAbsCoor( this->getAbsCoorX(), this->getAbsCoorY(), this->getAbsCoorZ() ); 247 fps->setAbsDir( this->getAbsDir() ); 248 fps->loadMD2Texture( "doom_guy.png" ); 249 fps->loadModel( "models/creatures/doom_guy.md2", 10.0f ); 250 fps->toList( OM_GROUP_00); 251 //fps->loadModel( "models/ships/terran_cruizer.obj" ); 252 253 //((Playable*)fps)->setPlayDirection( 0, 0, 1, 0 ); 254 } 255 } 256 257 258 259 -
trunk/src/world_entities/terrain.cc
r9877 r10114 34 34 #include "debug.h" 35 35 36 #include "class_id_DEPRECATED.h" 37 ObjectListDefinition ID(Terrain, CL_TERRAIN);36 37 ObjectListDefinition(Terrain); 38 38 CREATE_FACTORY(Terrain); 39 39 -
trunk/src/world_entities/test_entity.cc
r9928 r10114 33 33 34 34 35 #include "class_id_DEPRECATED.h" 35 36 36 ObjectListDefinition(TestEntity); 37 37 CREATE_FACTORY(TestEntity); -
trunk/src/world_entities/weapons/aiming_turret.cc
r9869 r10114 27 27 #include "util/loading/factory.h" 28 28 29 #include "class_id_DEPRECATED.h" 30 ObjectListDefinition ID(AimingTurret, CL_AIMING_TURRET);29 30 ObjectListDefinition(AimingTurret); 31 31 CREATE_FACTORY(AimingTurret); 32 32 -
trunk/src/world_entities/weapons/boomerang_gun.cc
r9869 r10114 27 27 #include "util/loading/factory.h" 28 28 29 #include "class_id_DEPRECATED.h" 30 ObjectListDefinition ID(BoomerangGun, CL_BOOMERANG_GUN);29 30 ObjectListDefinition(BoomerangGun); 31 31 CREATE_FACTORY(BoomerangGun); 32 32 -
trunk/src/world_entities/weapons/cannon.cc
r9869 r10114 36 36 37 37 38 #include "class_id_DEPRECATED.h" 39 ObjectListDefinition ID(Cannon, CL_CANNON);38 39 ObjectListDefinition(Cannon); 40 40 CREATE_FACTORY(Cannon); 41 41 -
trunk/src/world_entities/weapons/fps_sniper_rifle.cc
r9869 r10114 39 39 40 40 41 #include "class_id_DEPRECATED.h" 42 ObjectListDefinition ID(FPSSniperRifle, CL_FPS_SNIPER_RIFLE);41 42 ObjectListDefinition(FPSSniperRifle); 43 43 CREATE_FACTORY(FPSSniperRifle); 44 44 -
trunk/src/world_entities/weapons/hyperblaster.cc
r9869 r10114 35 35 36 36 37 #include "class_id_DEPRECATED.h" 38 ObjectListDefinition ID(Hyperblaster, CL_HYPERBLASTER);37 38 ObjectListDefinition(Hyperblaster); 39 39 CREATE_FACTORY(Hyperblaster); 40 40 -
trunk/src/world_entities/weapons/laser_cannon.cc
r9869 r10114 31 31 #include "loading/fast_factory.h" 32 32 33 #include "class_id_DEPRECATED.h" 34 ObjectListDefinition ID(LaserCannon, CL_LASER_CANNON);33 34 ObjectListDefinition(LaserCannon); 35 35 CREATE_FACTORY(LaserCannon); 36 36 -
trunk/src/world_entities/weapons/targeting_turret.cc
r9869 r10114 26 26 #include "util/loading/factory.h" 27 27 28 #include "class_id_DEPRECATED.h" 29 ObjectListDefinition ID(TargetingTurret, CL_TARGETING_TURRET);28 29 ObjectListDefinition(TargetingTurret); 30 30 CREATE_FACTORY(TargetingTurret); 31 31 -
trunk/src/world_entities/weapons/test_gun.cc
r9869 r10114 33 33 #include "loading/fast_factory.h" 34 34 35 #include "class_id_DEPRECATED.h" 36 ObjectListDefinition ID(TestGun, CL_TEST_GUN);35 36 ObjectListDefinition(TestGun); 37 37 CREATE_FACTORY(TestGun); 38 38 /** -
trunk/src/world_entities/weapons/turret.cc
r9869 r10114 27 27 #include "util/loading/factory.h" 28 28 29 #include "class_id_DEPRECATED.h" 30 ObjectListDefinition ID(Turret, CL_TURRET);29 30 ObjectListDefinition(Turret); 31 31 CREATE_FACTORY(Turret); 32 32 -
trunk/src/world_entities/weather_effects/cloud_effect.cc
r10034 r10114 30 30 #include "resource_shader.h" 31 31 32 #include "class_id_DEPRECATED.h" 32 33 33 34 34 Vector CloudEffect::cloudColor; … … 41 41 float CloudEffect::fadeTime; 42 42 43 ObjectListDefinition ID(CloudEffect, CL_CLOUD_EFFECT);43 ObjectListDefinition(CloudEffect); 44 44 45 45 -
trunk/src/world_entities/weather_effects/fog_effect.cc
r9869 r10114 30 30 SHELL_COMMAND(fadeout, FogEffect, fadeOutFog); 31 31 32 #include "class_id_DEPRECATED.h" 32 33 33 34 34 CREATE_SCRIPTABLE_CLASS(FogEffect, -
trunk/src/world_entities/weather_effects/lense_flare.cc
r9869 r10114 34 34 #include "camera.h" 35 35 36 #include "class_id_DEPRECATED.h" 37 38 ObjectListDefinition ID(LenseFlare, CL_LENSE_FLARE);36 37 38 ObjectListDefinition(LenseFlare); 39 39 CREATE_FACTORY(LenseFlare); 40 40 -
trunk/src/world_entities/weather_effects/lightning_effect.cc
r9869 r10114 28 28 #include "script_class.h" 29 29 #include "debug.h" 30 #include "class_id_DEPRECATED.h" 31 32 ObjectListDefinition ID(LightningEffect, CL_LIGHTNING_EFFECT);30 31 32 ObjectListDefinition(LightningEffect); 33 33 34 34 SHELL_COMMAND(activate, LightningEffect, activateLightning); -
trunk/src/world_entities/weather_effects/rain_effect.cc
r9869 r10114 32 32 #include "debug.h" 33 33 34 #include "class_id_DEPRECATED.h" 35 36 ObjectListDefinition ID(RainEffect, CL_RAIN_EFFECT);34 35 36 ObjectListDefinition(RainEffect); 37 37 38 38 // Define shell commands -
trunk/src/world_entities/weather_effects/snow_effect.cc
r9869 r10114 30 30 #include "cloud_effect.h" 31 31 32 #include "class_id_DEPRECATED.h" 33 34 ObjectListDefinition ID(SnowEffect, CL_SNOW_EFFECT);32 33 34 ObjectListDefinition(SnowEffect); 35 35 SHELL_COMMAND(activate, SnowEffect, activateSnow); 36 36 SHELL_COMMAND(deactivate, SnowEffect, deactivateSnow); -
trunk/src/world_entities/weather_effects/volfog_effect.cc
r9869 r10114 49 49 50 50 51 #include "class_id_DEPRECATED.h" 52 ObjectListDefinition ID(VolFogEffect, CL_VOLFOG_EFFECT);51 52 ObjectListDefinition(VolFogEffect); 53 53 CREATE_FACTORY(VolFogEffect); 54 54
Note: See TracChangeset
for help on using the changeset viewer.