Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 8, 2007, 9:46:13 PM (17 years ago)
Author:
nicolasc
Message:

just another upload
GUI seems to work, but there are still some unexplainable segfaults

File:
1 edited

Legend:

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

    r10188 r10196  
    3232
    3333#include "weapons/weapon.h"
    34 
     34#include "../weapons/weapon_manager.h"
    3535
    3636#include "class_id_DEPRECATED.h"
     
    6565  this->halo->setSize(2, 2);
    6666  this->halo->setTexture("hbolt_halo.png");
    67 /*
    68 //   this->weaponMan = new WeaponManager(dynamic_cast<WorldEntity*>(this));
    69   this->weaponMan.setParentEntity(this);
     67
     68  this->weaponMan = new WeaponManager(dynamic_cast<WorldEntity*>(this));
     69  this->weaponMan->setParentEntity(this);
    7070
    7171  Weapon* cannon = new SpikeLauncher();
    7272  cannon->setName( "SpikeLauncher");
    73   this->weaponMan.addWeapon(cannon, 0, 0);
    74   this->weaponMan.changeWeaponConfig(0);
    75 */
     73  this->weaponMan->addWeapon(cannon, 0, 0);
     74  this->weaponMan->changeWeaponConfig(0);
     75
    7676
    7777}
     
    177177
    178178  if (this->tickLifeCycle(dt)){
    179 //     this->blow();
     179    this->weaponMan->fire();
    180180    this->deactivate();
    181181  }
Note: See TracChangeset for help on using the changeset viewer.