Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 14, 2007, 4:34:23 PM (17 years ago)
Author:
nicolasc
Message:

inital upload of projectile_weapon, started usage in spike_ball

File:
1 edited

Legend:

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

    r10229 r10235  
    3131#include "space_ships/space_ship.h"
    3232
    33 #include "weapons/weapon.h"
    34 #include "../weapons/weapon_manager.h"
     33// #include "weapons/weapon.h"
     34// #include "../weapons/weapon_manager.h"
    3535
    3636#include "class_id_DEPRECATED.h"
     
    4141 *  standard constructor
    4242*/
    43 SpikeBall::SpikeBall () : Projectile()
     43SpikeBall::SpikeBall () : ProjectileWeapon()
    4444{
    4545  this->registerObject(this, SpikeBall::_objectList);
     
    6565  this->halo->setSize(2, 2);
    6666  this->halo->setTexture("hbolt_halo.png");
    67 
     67/*
    6868  this->weaponMan = new WeaponManager(dynamic_cast<WorldEntity*>(this));
    6969  this->weaponMan->setParentEntity(this);
     
    7777  this->weaponMan->changeWeaponConfig(0);
    7878
    79   this->weaponMan->getWeapon(0)->increaseEnergy(50);
     79  this->weaponMan->getWeapon(0)->increaseEnergy(50);*/
    8080}
    8181
     
    195195void SpikeBall::destroy (WorldEntity* killer)
    196196{
    197   Projectile::destroy( killer );
     197  ProjectileWeapon::destroy( killer );
    198198  PRINTF(5)("DESTROY SpikeBall\n");
    199199  this->lifeCycle = .95; //!< @todo calculate this usefully.
Note: See TracChangeset for help on using the changeset viewer.