Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6074 in orxonox.OLD for trunk/src/world_entities/weapons


Ignore:
Timestamp:
Dec 12, 2005, 11:34:02 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: taken out NullParent.
THE TRUNK IS NOT RUNNING FOR THE TIME BEING. DO NOT BE ALARMED, THIS IS TEMPORARY

Location:
trunk/src/world_entities/weapons
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/aiming_turret.cc

    r5994 r6074  
    2222
    2323#include "model.h"
    24 
    25 #include "null_parent.h"
    2624
    2725#include "animation3d.h"
     
    145143
    146144  pj->setTarget(this->target->getParent());
    147   pj->setParent(NullParent::getInstance());
     145  pj->setParent(PNode::getNullParent());
    148146  pj->setAbsCoor(this->getEmissionPoint());
    149147  pj->setAbsDir(this->getAbsDir());
  • trunk/src/world_entities/weapons/cannon.cc

    r5994 r6074  
    3232#include "list.h"
    3333#include "animation3d.h"
    34 
    35 #include "null_parent.h"
    3634
    3735#include "fast_factory.h"
     
    161159    return;
    162160
    163   pj->setParent(NullParent::getInstance());
     161  pj->setParent(PNode::getNullParent());
    164162
    165163  pj->setVelocity(this->getVelocity() + this->getAbsDir().apply(Vector(1,0,0))*15+VECTOR_RAND(5));
  • trunk/src/world_entities/weapons/guided_missile.cc

    r6056 r6074  
    2828#include "particle_emitter.h"
    2929#include "particle_system.h"
    30 
    31 
    32 #include "null_parent.h"
    3330
    3431using namespace std;
     
    153150{
    154151  //Vector v = *this->flightDirection * ( this->speed * time * 1000 + 0.1);
    155   if (target.getParent() != NullParent::getInstance())
     152  if (target.getParent() != PNode::getNullParent())
    156153   {
    157154     velocity += ((target.getAbsCoor() - this->getAbsCoor()).getNormalized())*agility;
  • trunk/src/world_entities/weapons/projectile.cc

    r6056 r6074  
    2121#include "world_entity.h"
    2222#include "weapon.h"
    23 #include "null_parent.h"
    2423#include "model.h"
    2524
  • trunk/src/world_entities/weapons/test_gun.cc

    r6022 r6074  
    3232#include "list.h"
    3333#include "animation3d.h"
    34 
    35 #include "null_parent.h"
    3634
    3735#include "fast_factory.h"
     
    184182    return;
    185183
    186   pj->setParent(NullParent::getInstance());
     184  pj->setParent(PNode::getNullParent());
    187185
    188186  pj->setVelocity(this->getVelocity() + this->getAbsDir().apply(Vector(1,0,0))*50+VECTOR_RAND(5));
  • trunk/src/world_entities/weapons/turret.cc

    r5994 r6074  
    2222#include "model.h"
    2323
    24 #include "null_parent.h"
    2524#include "state.h"
    2625#include "list.h"
     
    139138
    140139
    141   pj->setParent(NullParent::getInstance());
     140  pj->setParent(PNode::getNullParent());
    142141  pj->setAbsCoor(this->getEmissionPoint());
    143142  pj->setAbsDir(this->getAbsDir());
  • trunk/src/world_entities/weapons/weapon_manager.cc

    r6056 r6074  
    2727
    2828#include "t_animation.h"
    29 #include "null_parent.h"
    30 
    3129
    3230using namespace std;
     
    160158{
    161159  if (parent == NULL)
    162     parent = NullParent::getInstance();
     160    parent = PNode::getNullParent();
    163161  this->parent = parent;
    164162  if (this->parent != NULL)
Note: See TracChangeset for help on using the changeset viewer.