- Timestamp:
- Jan 14, 2007, 4:34:23 PM (18 years ago)
- Location:
- branches/playability/src/world_entities
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/WorldEntities.am
r10180 r10235 58 58 world_entities/projectiles/hyperblast.cc \ 59 59 world_entities/projectiles/spike.cc \ 60 world_entities/projectiles/acid_splash.cc \ 61 \ 62 world_entities/projectiles/projectile_weapon.cc \ 60 63 world_entities/projectiles/spike_ball.cc \ 61 world_entities/projectiles/acid_splash.cc \62 64 \ 63 65 world_entities/power_ups/turret_power_up.cc \ … … 180 182 projectiles/acid_splash.h \ 181 183 \ 184 projectiles/projectile_weapon.h \ 185 projectiles/spike_ball.h \ 186 \ 182 187 power_ups/turret_power_up.h \ 183 188 power_ups/laser_power_up.h \ -
branches/playability/src/world_entities/projectiles/spike_ball.cc
r10229 r10235 31 31 #include "space_ships/space_ship.h" 32 32 33 #include "weapons/weapon.h"34 #include "../weapons/weapon_manager.h"33 // #include "weapons/weapon.h" 34 // #include "../weapons/weapon_manager.h" 35 35 36 36 #include "class_id_DEPRECATED.h" … … 41 41 * standard constructor 42 42 */ 43 SpikeBall::SpikeBall () : Projectile ()43 SpikeBall::SpikeBall () : ProjectileWeapon() 44 44 { 45 45 this->registerObject(this, SpikeBall::_objectList); … … 65 65 this->halo->setSize(2, 2); 66 66 this->halo->setTexture("hbolt_halo.png"); 67 67 /* 68 68 this->weaponMan = new WeaponManager(dynamic_cast<WorldEntity*>(this)); 69 69 this->weaponMan->setParentEntity(this); … … 77 77 this->weaponMan->changeWeaponConfig(0); 78 78 79 this->weaponMan->getWeapon(0)->increaseEnergy(50); 79 this->weaponMan->getWeapon(0)->increaseEnergy(50);*/ 80 80 } 81 81 … … 195 195 void SpikeBall::destroy (WorldEntity* killer) 196 196 { 197 Projectile ::destroy( killer );197 ProjectileWeapon::destroy( killer ); 198 198 PRINTF(5)("DESTROY SpikeBall\n"); 199 199 this->lifeCycle = .95; //!< @todo calculate this usefully. -
branches/playability/src/world_entities/projectiles/spike_ball.h
r10224 r10235 7 7 #define _SPIKE_BALL_H 8 8 9 #include "projectile .h"9 #include "projectile_weapon.h" 10 10 #include "effects/billboard.h" 11 11 12 #include "../weapons/spike_launcher.h"12 // #include "../weapons/spike_launcher.h" 13 13 14 14 … … 16 16 17 17 class Vector; 18 class Weapon;18 class ProjectileWeapon; 19 19 class SpriteParticles; 20 20 class ParticleEmitter; 21 21 class FastFactory; 22 class WeaponManager;22 class FastFactory; 23 23 24 24 25 class SpikeBall : public Projectile 25 class SpikeBall : public ProjectileWeapon 26 26 { 27 27 ObjectListDeclaration(SpikeBall); -
branches/playability/src/world_entities/space_ships/space_ship.cc
r10233 r10235 176 176 cannon->setName( "SwarmLauncher"); 177 177 178 Weapon* spike = new SpikeThrower();179 spike->setName( "SpikeThrower" );178 // Weapon* spike = new SpikeThrower(); 179 // spike->setName( "SpikeThrower" ); 180 180 181 181 Weapon* spike2 = new SpikeLauncher(); 182 spike ->setName( "SpikeLauncher" );182 spike2->setName( "SpikeLauncher" ); 183 183 184 184 this->weaponMan.addWeapon( wpLeft1, 0, 0); … … 201 201 202 202 this->secWeaponMan.addWeapon( cannon, 0, 0); 203 this->secWeaponMan.addWeapon( spike, 1, 1); 203 /* this->secWeaponMan.addWeapon( spike, 1, 1);*/ 204 204 this->secWeaponMan.addWeapon( spike2, 2, 2); 205 205 206 206 207 207 this->weaponMan.changeWeaponConfig(3); 208 this->secWeaponMan.changeWeaponConfig( 1);208 this->secWeaponMan.changeWeaponConfig(2); 209 209 210 210 curWeaponPrimary = 3;
Note: See TracChangeset
for help on using the changeset viewer.