Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2100 for code/trunk


Ignore:
Timestamp:
Nov 1, 2008, 11:41:03 PM (16 years ago)
Author:
landauf
Message:

did some small adjustments in Projectile.cc although it's only a sample

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/weaponSystem/projectiles/Projectile.cc

    r2099 r2100  
    3838#include "tools/ParticleInterface.h"
    3939
    40 #include "SpaceShipAI.h"
    41 #include "ParticleSpawner.h"
    42 #include "Model.h"
     40#include "objects/worldentities/Model.h"
     41#include "objects/worldentities/ParticleSpawner.h"
    4342#include "Settings.h"
    4443
     
    9796        for (ObjectList<Model>::iterator it = ObjectList<Model>::begin(); it; ++it)
    9897        {
    99             if ((*it) != this->owner_)
     98//            if ((*it) != this->owner_)
    10099            {
    101100                radius = it->getScale3D().x * 3.0;
     
    104103                {
    105104                    // hit
    106                     if (it->isA(Class(SpaceShipAI)))
    107                         ((SpaceShipAI*)(*it))->damage(this->damage_);
    108105                    ParticleSpawner* explosion = new ParticleSpawner(this->explosionTemplateName_, LODParticle::low, 2.0);
    109106                    explosion->setPosition(this->getPosition());
Note: See TracChangeset for help on using the changeset viewer.