Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 5, 2014, 4:06:09 PM (9 years ago)
Author:
fvultier
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickupsFS14/src/modules/jump/JumpFigure.h

    r10074 r10111  
    2121 *
    2222 *   Author:
    23  *      Fabian 'x3n' Landau
     23 *      Fabien Vultier
    2424 *   Co-authors:
    2525 *      ...
    2626 *
    2727 */
    28 
    29 /**
    30     @file JumpFigure.h
    31     @brief Declaration of the JumpFigure class.
    32     @ingroup Jump
    33 */
    3428
    3529#ifndef _JumpFigure_H__
     
    4236namespace orxonox
    4337{
    44 
    45     /**
    46     @brief
    47         The JumpFigure class manages the bats for @ref orxonox::Jump "Jump", which are the elements controlled by the players.
    48 
    49         It is responsible for the movement (controlled by the players) of the bat.
    50 
    51     @author
    52         Fabian 'x3n' Landau
    53 
    54     @ingroup Jump
    55     */
    5638    class _JumpExport JumpFigure : public ControllableEntity
    5739    {
     
    5941            JumpFigure(Context* context); //!< Constructor. Registers and initializes the object.
    6042            virtual ~JumpFigure() {}
    61 
    6243            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    63 
    6444            virtual void tick(float dt);
    65 
    6645            virtual void moveFrontBack(const Vector2& value); //!< Overloaded the function to steer the bat up and down.
    6746            virtual void moveRightLeft(const Vector2& value); //!< Overloaded the function to steer the bat up and down.
    68 
    6947            virtual void rotateYaw(const Vector2& value);
    7048            virtual void rotatePitch(const Vector2& value);
    7149            virtual void rotateRoll(const Vector2& value);
    72 
    7350            void fire(unsigned int firemode);
    7451            virtual void fired(unsigned int firemode);
    75 
    7652            virtual void JumpFromPlatform(JumpPlatform* platform);
    7753            virtual void JumpFromSpring(JumpSpring* spring);
     
    8561            virtual bool StartShield(JumpShield* shield);
    8662            virtual void StopShield(JumpShield* shield);
    87 
    8863            virtual void InitializeAnimation(Context* context);
    8964
    9065            void setFieldDimension(float width, float height)
    9166                { fieldWidth_ = width; fieldHeight_ = height; }
    92 
    9367            void setFieldDimension(const Vector2& dimension)
    9468                { setFieldDimension(dimension.x, dimension.y); }
    95 
    9669            Vector2 getFieldDimension() const
    9770                { return Vector2(fieldWidth_, fieldHeight_); }
    98 
    9971            void setMouseFactor(const float mouseFactor)
    10072                { mouseFactor_ = mouseFactor; }
    101 
    10273            const float getMouseFactor() const
    10374                { return mouseFactor_; }
    104 
    10575            void setModelLeftHand(const std::string& modelLeftHand)
    10676                { modelLeftHand_ = modelLeftHand; }
    107 
    10877            const std::string& getModelLeftHand() const
    10978                { return modelLeftHand_; }
    110 
    11179            void setModelRightHand(const std::string& modelRightHand)
    11280                { modelRightHand_ = modelRightHand; }
    113 
    11481            const std::string& getModelRightHand() const
    11582                { return modelRightHand_; }
    116 
    11783            void setRocketPos(const float rocketPos)
    11884                { rocketPos_ = rocketPos; }
    119 
    12085            const float getRocketPos() const
    12186                { return rocketPos_; }
    122 
    12387                        void setPropellerPos(const float propellerPos)
    12488                                { propellerPos_ = propellerPos; }
    125 
    12689                        const float getPropellerPos() const
    12790                                { return propellerPos_; }
    128 
    12991                        void setBootsPos(const float bootsPos)
    13092                                { bootsPos_ = bootsPos; }
    131 
    13293                        const float getBootsPos() const
    13394                                { return bootsPos_; }
    134 
    13595            void setJumpSpeed(const float jumpSpeed)
    13696                { jumpSpeed_ = jumpSpeed; }
    137 
    13897            const float getJumpSpeed() const
    13998                { return jumpSpeed_; }
    140 
    14199            void setRocketSpeed(const float rocketSpeed)
    142100                { rocketSpeed_ = rocketSpeed; }
    143 
    144101            const float getRocketSpeed() const
    145102                { return rocketSpeed_; }
    146 
    147103            void setPropellerSpeed(const float propellerSpeed)
    148104                { propellerSpeed_ = propellerSpeed; }
    149 
    150105            const float getPropellerSpeed() const
    151106                { return propellerSpeed_; }
    152 
    153107            void setHandMinAngle(const float handMinAngle)
    154108                { handMinAngle_ = handMinAngle; }
    155 
    156109            const float getHandMinAngle() const
    157110                { return handMinAngle_; }
    158 
    159111            void setHandMaxAngle(const float handMaxAngle)
    160112                { handMaxAngle_ = handMaxAngle; }
    161 
    162113            const float getHandMaxAngle() const
    163114                { return handMaxAngle_; }
    164 
    165115            void setHandSpeed(const float handSpeed)
    166116                { handSpeed_ = handSpeed; }
    167 
    168117            const float getHandSpeed() const
    169118                { return handSpeed_; }
    170119
    171             bool fireSignal;
     120            bool fireSignal_;
     121            bool rocketActive_;
     122            bool propellerActive_;
    172123            bool dead_;
    173 
    174124        private:
    175125            std::string modelLeftHand_;
    176126            std::string modelRightHand_;
    177 
    178127            Model* leftHand_;
    179128            Model* rightHand_;
    180 
    181129            float fieldWidth_;
    182130            float fieldHeight_;
    183             float timeSinceLastFire;
    184 
    185             bool moveUpPressed;
    186             bool moveDownPressed;
    187             bool moveLeftPressed;
    188             bool moveRightPressed;
    189             bool firePressed;
    190 
    191             float gravityAcceleration;
     131            float timeSinceLastFire_;
     132            bool moveUpPressed_;
     133            bool moveDownPressed_;
     134            bool moveLeftPressed_;
     135            bool moveRightPressed_;
     136            bool firePressed_;
     137            float gravityAcceleration_;
    192138            float mouseFactor_;
    193 
    194139            float jumpSpeed_;
    195140            float handSpeed_;
     
    199144            float propellerPos_;
    200145            float bootsPos_;
    201             float maxFireRate;
    202 
    203             float horizontalSpeed;
    204 
     146            float maxFireRate_;
     147            float horizontalSpeed_;
    205148            float handAngle_;
    206149            bool animateHands_;
    207150            bool turnUp_;
    208 
    209             bool rocketActive_;
    210             bool propellerActive_;
    211151            bool bootsActive_;
    212152            bool shieldActive_;
Note: See TracChangeset for help on using the changeset viewer.