Changeset 10289 in orxonox.OLD for branches/playability/src
- Timestamp:
- Jan 17, 2007, 10:39:50 PM (18 years ago)
- Location:
- branches/playability/src/world_entities
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/spike.cc
r10271 r10289 57 57 this->angle = 0; 58 58 this->rotationSpeed = 130; 59 /*60 this->halo = new Billboard();61 this->halo->setSize(.35, .35);62 this->halo->setTexture("hbolt_halo.png");*/63 59 } 64 60 -
branches/playability/src/world_entities/projectiles/spike.h
r10286 r10289 45 45 float rotationSpeed; 46 46 47 // Billboard* halo;48 49 47 WorldEntity* hitEntity; // FIXME TEMPORARY 50 48 -
branches/playability/src/world_entities/projectiles/spike_ball.h
r10286 r10289 41 41 inline void setVelocity(Vector velocity) { this->velocity = velocity; } 42 42 43 // inline Vector getRotationVector() { return this->rotationVector; }44 // inline float getAngle() { return this->angle; }45 43 46 44 private: -
branches/playability/src/world_entities/space_ships/space_ship.cc
r10286 r10289 823 823 this->travelNode->setAbsCoor(this->getAbsCoor()); 824 824 this->travelNode->updateNode(0.01f); 825 825 826 826 this->setParent(this->travelNode); 827 828 // If track exists put travelNode on trackNode of track829 if (this->entityTrack)830 this->travelNode->setParent(this->entityTrack->getTrackNode());831 832 833 834 827 this->setRelCoor(0,0,0); 835 828 836 829 State::getCameraNode()->setParentSoft(this->travelNode); 837 //State::getCameraNode()->setParentSoft(this ->entityTrack->getTrackNode());830 //State::getCameraNode()->setParentSoft(this); 838 831 //State::getCameraNode()->setRelCoorSoft(-0.01, 40, 0); 839 832 State::getCameraTargetNode()->setParentSoft(this->travelNode); 840 //State::getCameraTargetNode()->setParentSoft(this ->entityTrack->getTrackNode());833 //State::getCameraTargetNode()->setParentSoft(this); 841 834 //State::getCameraTargetNode()->setRelCoorSoft(0,0,0); 842 835 this->setCameraMode(Camera::ViewTop); … … 1011 1004 1012 1005 //this moves camera and ship along the travel path. 1013 if (!this->entityTrack) 1014 this->travelNode->shiftCoor(Vector(this->cameraSpeed * dt, 0, 0)); 1006 this->travelNode->shiftCoor(Vector(this->cameraSpeed * dt, 0, 0)); 1015 1007 1016 1008 break; -
branches/playability/src/world_entities/weapons/medium_blaster.cc
r10286 r10289 40 40 { 41 41 delete [] this->shootAnim[i]; 42 // delete [] this->objComp[i];43 42 } 44 43 delete [] this->shootAnim; 45 // delete [] this->objComp;46 44 } 47 45 … … 53 51 void MediumBlaster::init() 54 52 { 55 //this->registerObject(this, MediumBlaster::_objectList);56 57 // this->model = (Model*)ResourceManager::getInstance()->load("models/guns/test_gun.obj", OBJ, RP_CAMPAIGN);58 59 53 this->loadModel("models/guns/blaster.obj", .33); 60 61 54 62 55 this->setStateDuration(WS_SHOOTING, 0.2); // 5 Schuss pro Sekunde … … 84 77 85 78 this->objComp = new PNode**[this->getBarrels()]; 86 // this->emissionPoint = new PNode*[this->getBarrels()];87 79 this->shootAnim = new Animation3D**[this->getBarrels()]; 88 80 for (int i = 0; i < this->getBarrels(); i++) 89 81 { 90 82 this->objComp[i] = new PNode* [this->getSegs()]; 91 // this->emissionPoint[i] = new PNode;92 // this->emissionPoint[i]->setParent(this); //< One EmissionPoint, that is a PNode connected to the weapon. You can set this to the exitting point of the Projectiles93 // this->emissionPoint[i]->setName("EmissionPoint");94 // this->emissionPoint[i]->addNodeFlags(PNODE_PROHIBIT_DELETE_WITH_PARENT);95 83 this->shootAnim[i] = new Animation3D* [this->getSegs()]; 96 84 for(int j = 0; j < this->getSegs(); j++) … … 168 156 glMatrixMode(GL_MODELVIEW); 169 157 glPushMatrix(); 170 glTranslatef (this->getAbsCoor ().x, 171 this->getAbsCoor ().y, 172 this->getAbsCoor ().z); 158 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 173 159 174 160 static_cast<StaticModel*>(this->getModel())->draw(2); … … 180 166 181 167 glPushMatrix(); 182 glTranslatef (this->objComp[0][1]->getAbsCoor().x, this->objComp[0][1]->getAbsCoor().y, this->objComp[0][1]->getAbsCoor().z); 183 static_cast<StaticModel*>(this->getModel())->draw(0); 184 glPopMatrix(); 185 168 glTranslatef (this->objComp[0][1]->getAbsCoor().x, this->objComp[0][1]->getAbsCoor().y, this->objComp[0][1]->getAbsCoor().z); 169 static_cast<StaticModel*>(this->getModel())->draw(0); 186 170 glPopMatrix(); 187 171 -
branches/playability/src/world_entities/weapons/spike_thrower.cc
r10271 r10289 161 161 pj->setAbsDir(this->getAbsDir()); 162 162 pj->activate(); 163 164 // this->increaseEnergy( - this->getProjectile()->getMinEnergy()); 165 163 166 }
Note: See TracChangeset
for help on using the changeset viewer.