Changeset 10104 in orxonox.OLD for branches/playability/src/world_entities/projectiles/hbolt.cc
- Timestamp:
- Dec 19, 2006, 8:00:52 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/hbolt.cc
r10081 r10104 2 2 orxonox - the future of 3D-vertical-scrollers 3 3 4 Copyright (C) 2004 orx4 Copyright (C) 2004-2006 orx 5 5 6 6 This program is free software; you can redistribute it and/or modify … … 10 10 11 11 ### File Specific 12 main-programmer: Patrick Boenzli12 main-programmer: Nicolas Schlumberger, Marc Schaerrer 13 13 co-programmer: Benjamin Grauer 14 14 … … 29 29 // #include "effects/billboard.h" 30 30 #include "space_ships/space_ship.h" 31 32 31 33 32 #include "class_id_DEPRECATED.h" … … 60 59 this->halo->setSize(.65, .65); 61 60 this->halo->setTexture("hbolt_halo2.png"); 62 63 61 } 64 62 … … 118 116 void HBolt::collidesWith(WorldEntity* entity, const Vector& location) 119 117 { 120 PRINTF(0)("Collision with HBolt\n");121 if (this->hitEntity != entity && entity->isA(CL_NPC))118 printf("Collision with HBolt\n"); 119 if (this->hitEntity != entity/* && entity->isA(CL_NPC)*/ || entity == this->target) 122 120 this->destroy( entity ); 123 121 this->hitEntity = entity; 124 122 dynamic_cast<SpaceShip*>(entity)->damage( this->getPhysDamage(), this->getElecDamage()); 125 this->deactivate(); 126 } 127 128 129 void HBolt::updateAngle (float time) 130 { 131 this->angle += this->rotationSpeed * time; 123 // this->deactivate(); 132 124 } 133 125 … … 146 138 this->deactivate(); 147 139 148 this-> updateAngle(dt);140 this->angle += this->rotationSpeed * dt; 149 141 150 142 … … 183 175 this->getModel()->draw(); 184 176 185 // this->mat->select();186 /* dynamic_cast<StaticModel*>(this->getModel())->draw();*/187 // this->mat->select();188 // dynamic_cast<StaticModel*>(this->getModel())->draw();189 // this->mat->unselect();190 191 192 177 glPopMatrix(); 193 178 }
Note: See TracChangeset
for help on using the changeset viewer.