Changeset 9971 in orxonox.OLD for branches/playability/src
- Timestamp:
- Nov 29, 2006, 4:29:22 PM (18 years ago)
- Location:
- branches/playability/src
- Files:
-
- 2 added
- 2 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/util/state.h
r8408 r9971 110 110 111 111 112 113 112 private: 114 113 State(); -
branches/playability/src/world_entities/WorldEntities.am
r9970 r9971 54 54 \ 55 55 world_entities/space_ships/space_ship.cc \ 56 world_entities/space_ships/playership.cc \ 56 57 world_entities/space_ships/helicopter.cc \ 57 58 world_entities/space_ships/hover.cc \ … … 161 162 \ 162 163 space_ships/space_ship.h \ 164 space_ships/playership.h \ 163 165 space_ships/helicopter.h \ 164 166 space_ships/hover.h \ -
branches/playability/src/world_entities/player.cc
r9869 r9971 23 23 24 24 #include "debug.h" 25 26 #include "world_entities/space_ships/playership.h" 25 27 26 28 ObjectListDefinition(Player); … … 128 130 } 129 131 132 PlayerShip* Player::getPlayerShip() 133 { 134 return this->playership; 135 } 136 137 void Player::setPlayerShip(PlayerShip* playership) 138 { 139 this->playership = playership; 140 } 141 142 -
branches/playability/src/world_entities/player.h
r9869 r9971 10 10 11 11 #include "util/hud.h" 12 #include "world_entities/space_ships/playership.h" 12 13 13 14 /* Forward Declaration */ … … 31 32 bool setPlayable(Playable* controllalble); 32 33 bool eject(); 34 void setPlayerShip(PlayerShip playership); 35 PlayerShip* getPlayerShip(); 33 36 inline Playable* getPlayable() const { return this->playable; }; 34 37 … … 46 49 private: 47 50 Playable* playable; //!< The one we controll or NULL if none 48 Hud _hud; //!< The HUD to be displayed for this Player. 51 Hud _hud; //!< The HUD to be displayed for this Player. 52 PlayerShip playership; 49 53 }; 50 54 -
branches/playability/src/world_entities/space_ships/space_ship.h
r9970 r9971 30 30 31 31 virtual void setPlayDirection(const Quaternion& rot, float speed = 0.0f); 32 void setTravelSpeed(float travelSpeed); 33 void setTravelHeight(float travelHeight); 34 void setTravelDistance(const Vector2D& distance); 35 void setTravelDistance(float x, float y); 36 37 void setAirFriction(float friction) { this->airFriction = friction; }; 32 38 33 39 virtual void enter(); … … 62 68 //damage handler 63 69 virtual void damage(float pDamage, float eDamage); //!< pDamage physical damage, eDamage electronic damage 70 71 virtual void enterPlaymode(Playable::Playmode playmode); 72 virtual void movement (float dt); 64 73 65 74 private: … … 132 141 Vector velocity; //!< the velocity of the player. 133 142 Vector oldVelocity; //!< the velocity the player had last synced 143 144 // 2D-traveling 145 PNode* travelNode; 146 float travelSpeed; //!< the current speed of the Ship (to make soft movement) 147 148 // Camera 149 PNode cameraNode; 150 float cameraLook; 151 float rotation; 152 153 /* 134 154 Quaternion mouseDir; //!< the direction where the player wants to fly 135 155 Quaternion oldMouseDir; //!< the direction where the player wanted to fly 136 156 float shipInertia; //!< the inertia of the ship(how fast the ship reacts to a mouse input) 157 137 158 Quaternion rotQuat; 138 159 Quaternion pitchDir; 139 float travelSpeed; //!< the current speed of the player (to make soft movement)140 float acceleration; //!< the acceleration of the player.160 float dogdeSpeed; //!< the dogde Speed of the ship. 161 */ 141 162 163 Quaternion direction; //!< the direction of the ship. 164 float acceleration; //!< the acceleration of the ship. 165 float airFriction; //!< AirFriction. 142 166 float airViscosity; 143 167 -
branches/playability/src/world_entities/space_ships/spacecraft_2d.h
r9869 r9971 66 66 float acceleration; //!< the acceleration of the Spacecraft2D. 67 67 float airFriction; //!< AirFriction. 68 69 68 float airViscosity; 70 69
Note: See TracChangeset
for help on using the changeset viewer.