Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 20, 2007, 6:17:06 PM (17 years ago)
Author:
nicolasc
Message:

collision fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/projectiles/nadion_blast.cc

    r10728 r10737  
    2323#include "model.h"
    2424
     25#include "world_entities/npcs/actionbox_enemy.h"
    2526#include "world_entities/npcs/npc.h"
    2627
     
    149150}
    150151
    151 /*
    152 void NadionBlast::hit (float damage, WorldEntity* entity )
    153 {
    154 
    155   if (this->hitEntity != entity)
    156     this->destroy( entity );
    157   this->hitEntity = entity;
    158  // dynamic_cast<SpaceShip*>(entity)->damage(this->getPhysDamage(),this->getElecDamage());
    159   //this->destroy(this);
    160   this->deactivate();
    161 
    162   return;
    163 
    164 }*/
     152
     153// void NadionBlast::hit (float damage, WorldEntity* entity )
     154// {
     155//
     156//   if (this->hitEntity != entity)
     157//     this->destroy( entity );
     158//   this->hitEntity = entity;
     159// // dynamic_cast<SpaceShip*>(entity)->damage(this->getPhysDamage(),this->getElecDamage());
     160//   //this->destroy(this);
     161//   this->deactivate();
     162//
     163//   return;
     164//
     165// }
    165166
    166167/**
     
    180181//   this->trail->tick(dt);
    181182
    182   for( ObjectList<NPC>::const_iterator eIterator = NPC::objectList().begin(); eIterator !=NPC::objectList().end(); eIterator++)
     183  for( ObjectList<ActionboxEnemy>::const_iterator eIterator = ActionboxEnemy::objectList().begin(); eIterator !=ActionboxEnemy::objectList().end(); eIterator++)
    183184  {
    184185    if( ((*eIterator)->getOMListNumber() != (this->origList -1))  && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 8)
     
    215216//   glRotatef(this->angle, 1.0f, 0.0f, 0.0f); //spinning missile
    216217// HACK, need to be removed, once the AbsDir is correct, replace with the one above
    217   glRotatef(this->angle, this->flightDirection.x, this->flightDirection.y, this->flightDirection.z);
     218//   glRotatef(this->angle, this->flightDirection.x, this->flightDirection.y, this->flightDirection.z);
    218219  this->getAbsDir().matrix (matrix);
    219220  glMultMatrixf((float*)matrix);
Note: See TracChangeset for help on using the changeset viewer.