Changeset 10618 in orxonox.OLD for trunk/src/world_entities/space_ships
- Timestamp:
- Apr 4, 2007, 12:13:53 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 16 16 OrxonoxPlayability.kdevses 17 17 OrxonoxPlayability.kdevelop.pcs 18 orxonox.backtrace 19 orxonox.kdevses 20 orxonox.kdevelop.pcs
-
- Property svn:ignore
-
trunk/src/world_entities/space_ships/space_ship.cc
r10552 r10618 27 27 #include "weapons/heavy_blaster.h" 28 28 #include "weapons/swarm_launcher.h" 29 #include "weapons/spike_launcher.h"30 29 #include "weapons/spike_thrower.h" 31 30 #include "weapons/acid_launcher.h" … … 50 49 #include "shared_network_data.h" 51 50 52 #include " power_ups/weapon_power_up.h"53 #include " power_ups/param_power_up.h"51 #include "items/power_ups/weapon_power_up.h" 52 #include "items/power_ups/param_power_up.h" 54 53 55 54 #include "graphics_engine.h" … … 59 58 #include "state.h" 60 59 #include "player.h" 61 #include " camera.h"62 #include " cameraman.h"60 #include "tools/camera.h" 61 #include "tools/cameraman.h" 63 62 64 63 … … 67 66 68 67 #include "track/track.h" 69 #include "math.h"70 68 71 69 … … 616 614 { 617 615 this->bRight = event.bPressed; 618 printf("ShipCoors: %f , %f, %f \n", this->getAbsCoor().x, this->getAbsCoor().y, this->getAbsCoor().z);616 // printf("ShipCoors: %f , %f, %f \n", this->getAbsCoor().x, this->getAbsCoor().y, this->getAbsCoor().z); 619 617 } 620 618 else if( event.type == KeyMapper::PEV_FORWARD) … … 1143 1141 void SpaceShip::setCameraDistance(float dist) 1144 1142 { 1145 1146 CameraMan* cm = State::getCameraman(); 1147 Camera* c = cm->getCurrentCam(); 1143 Camera* c = State::getCamera(); 1148 1144 c->setViewTopDistance(dist); 1149 1145 … … 1155 1151 { 1156 1152 1157 CameraMan* cm = State::getCameraman(); 1158 Camera* c = cm->getCurrentCam(); 1153 Camera* c = State::getCamera(); 1159 1154 c->setViewTopFovy(fovy); 1160 1155 … … 1165 1160 void SpaceShip::updateTravelDistance() 1166 1161 { 1167 CameraMan* cm = State::getCameraman(); 1168 Camera* c = cm->getCurrentCam(); 1169 1162 1163 Camera* c = State::getCamera(); 1170 1164 1171 1165 float x = 1.25 * this->actionWidthPercentage * fabsf(c->getAbsCoor().y) * tan(c->getFovy()*M_PI /360.0);
Note: See TracChangeset
for help on using the changeset viewer.