Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 15, 2006, 8:34:47 AM (17 years ago)
Author:
nicolasc
Message:

guiding system (somewhat not working)
minor cleanup in pnode.h
cd/cr in hbolt/lbolt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/lbolt.cc

    r10074 r10079  
    2828#include <cassert>
    2929#include "debug.h"
     30
     31#include "space_ships/space_ship.h"
    3032
    3133
     
    116118void LBolt::collidesWith(WorldEntity* entity, const Vector& location)
    117119{
     120  PRINTF(0)("Collision with LBolt\n");
    118121  if (this->hitEntity != entity && entity->isA(CL_NPC))
    119122    this->destroy( entity );
    120123  this->hitEntity = entity;
     124  dynamic_cast<SpaceShip*>(entity)->damage(this->getDamage(),0);
     125//   this->deactivate();
    121126}
    122127
Note: See TracChangeset for help on using the changeset viewer.