Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9971 in orxonox.OLD


Ignore:
Timestamp:
Nov 29, 2006, 4:29:22 PM (17 years ago)
Author:
muellmic
Message:

blub

Location:
branches/playability/src
Files:
2 added
2 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/util/state.h

    r8408 r9971  
    110110
    111111
    112 
    113112 private:
    114113  State();
  • branches/playability/src/world_entities/WorldEntities.am

    r9970 r9971  
    5454                \
    5555                world_entities/space_ships/space_ship.cc \
     56                world_entities/space_ships/playership.cc \
    5657                world_entities/space_ships/helicopter.cc \
    5758                world_entities/space_ships/hover.cc \
     
    161162                \
    162163                space_ships/space_ship.h \
     164                space_ships/playership.h \
    163165                space_ships/helicopter.h \
    164166                space_ships/hover.h \
  • branches/playability/src/world_entities/player.cc

    r9869 r9971  
    2323
    2424#include "debug.h"
     25
     26#include "world_entities/space_ships/playership.h"
    2527
    2628ObjectListDefinition(Player);
     
    128130}
    129131
     132PlayerShip* Player::getPlayerShip()
     133{
     134  return this->playership;
     135}
     136
     137void Player::setPlayerShip(PlayerShip* playership)
     138{
     139  this->playership = playership;
     140}
     141
     142
  • branches/playability/src/world_entities/player.h

    r9869 r9971  
    1010
    1111#include "util/hud.h"
     12#include "world_entities/space_ships/playership.h"
    1213
    1314/* Forward Declaration */
     
    3132    bool              setPlayable(Playable* controllalble);
    3233    bool              eject();
     34    void              setPlayerShip(PlayerShip playership);
     35    PlayerShip*       getPlayerShip();
    3336    inline Playable*  getPlayable() const  { return this->playable; };
    3437
     
    4649  private:
    4750    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;
    4953};
    5054
  • branches/playability/src/world_entities/space_ships/space_ship.h

    r9970 r9971  
    3030
    3131    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; };
    3238
    3339    virtual void enter();
     
    6268    //damage handler
    6369    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);
    6473
    6574  private:
     
    132141    Vector                velocity;           //!< the velocity of the player.
    133142    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    /*
    134154    Quaternion            mouseDir;           //!< the direction where the player wants to fly
    135155    Quaternion            oldMouseDir;        //!< the direction where the player wanted to fly
    136156    float                 shipInertia;        //!< the inertia of the ship(how fast the ship reacts to a mouse input)
     157
    137158    Quaternion            rotQuat;
    138159    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    */
    141162
     163    Quaternion            direction;          //!< the direction of the ship.
     164    float                 acceleration;       //!< the acceleration of the ship.
     165    float                 airFriction;        //!< AirFriction.
    142166    float                 airViscosity;
    143167
  • branches/playability/src/world_entities/space_ships/spacecraft_2d.h

    r9869 r9971  
    6666    float                 acceleration;       //!< the acceleration of the Spacecraft2D.
    6767    float                 airFriction;        //!< AirFriction.
    68 
    6968    float                 airViscosity;
    7069
Note: See TracChangeset for help on using the changeset viewer.