Changeset 10196 in orxonox.OLD for branches/playability/src/world_entities/projectiles
- Timestamp:
- Jan 8, 2007, 9:46:13 PM (18 years ago)
- Location:
- branches/playability/src/world_entities/projectiles
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/projectile.h
r10104 r10196 87 87 OrxSound::SoundBuffer explosionBuffer; 88 88 OrxSound::SoundBuffer engineBuffer; 89 90 // virtual Vector newDirection(Vector curDirection, Vector estTargetDir, float angle);91 89 }; 92 90 -
branches/playability/src/world_entities/projectiles/spike.cc
r10173 r10196 165 165 float matrix[4][4]; 166 166 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 167 167 Vector tmpRot = this->getAbsDir().getSpacialAxis(); 168 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 168 169 glRotatef(angle, 1.0, 0.0, 0.0); 169 170 this->getAbsDir().matrix (matrix); -
branches/playability/src/world_entities/projectiles/spike.h
r10173 r10196 34 34 virtual void draw () const; 35 35 36 36 inline void setVelocity(Vector velocity) {this->velocity = velocity;} 37 37 private: 38 38 static FastFactory* fastFactory; -
branches/playability/src/world_entities/projectiles/spike_ball.cc
r10188 r10196 32 32 33 33 #include "weapons/weapon.h" 34 34 #include "../weapons/weapon_manager.h" 35 35 36 36 #include "class_id_DEPRECATED.h" … … 65 65 this->halo->setSize(2, 2); 66 66 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); 70 70 71 71 Weapon* cannon = new SpikeLauncher(); 72 72 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 76 76 77 77 } … … 177 177 178 178 if (this->tickLifeCycle(dt)){ 179 // this->blow();179 this->weaponMan->fire(); 180 180 this->deactivate(); 181 181 } -
branches/playability/src/world_entities/projectiles/spike_ball.h
r10188 r10196 11 11 12 12 #include "../weapons/spike_launcher.h" 13 #include "../weapons/weapon.h" 14 #include "../weapons/weapon_manager.h" 13 14 15 #include "extendable.h" 15 16 16 17 class Vector; … … 62 63 WorldEntity* hitEntity; // FIXME TEMPORARY 63 64 64 // WeaponManagerweaponMan;65 WeaponManager* weaponMan; 65 66 66 67 }; -
branches/playability/src/world_entities/projectiles/swarm_projectile.cc
r10188 r10196 1 2 1 /* 3 2 orxonox - the future of 3D-vertical-scrollers … … 187 186 void SwarmProjectile::tick (float time) 188 187 { 188 if(unlikely(this->target == NULL)) /** Check whether the target still exists*/ 189 this->deactivate(); 190 189 191 /* 190 192 Vector targetFarFarAway = this->getAbsCoor() + Vector(100000, 0, 0);
Note: See TracChangeset
for help on using the changeset viewer.