Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 22, 2014, 3:05:46 PM (10 years ago)
Author:
fvultier
Message:

new items added. improved level generator.

File:
1 edited

Legend:

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

    r10050 r10074  
    7171            virtual void rotateRoll(const Vector2& value);
    7272
     73            void fire(unsigned int firemode);
    7374            virtual void fired(unsigned int firemode);
    7475
    7576            virtual void JumpFromPlatform(JumpPlatform* platform);
    76 
    77             /**
    78             @brief Set the height of the playing field.
    79             @param height The height of the playing field.
    80             */
     77            virtual void JumpFromSpring(JumpSpring* spring);
     78            virtual void CollisionWithEnemy(JumpEnemy* enemy);
     79            virtual bool StartRocket(JumpRocket* rocket);
     80            virtual void StopRocket(JumpRocket* rocket);
     81            virtual bool StartPropeller(JumpPropeller* propeller);
     82            virtual void StopPropeller(JumpPropeller* propeller);
     83            virtual bool StartBoots(JumpBoots* boots);
     84            virtual void StopBoots(JumpBoots* boots);
     85            virtual bool StartShield(JumpShield* shield);
     86            virtual void StopShield(JumpShield* shield);
     87
     88            virtual void InitializeAnimation(Context* context);
     89
    8190            void setFieldDimension(float width, float height)
    82                 { this->fieldWidth_ = width; this->fieldHeight_ = height; }
     91                { fieldWidth_ = width; fieldHeight_ = height; }
    8392
    8493            void setFieldDimension(const Vector2& dimension)
    85                 { this->setFieldDimension(dimension.x, dimension.y); }
     94                { setFieldDimension(dimension.x, dimension.y); }
     95
     96            Vector2 getFieldDimension() const
     97                { return Vector2(fieldWidth_, fieldHeight_); }
    8698
    8799            void setMouseFactor(const float mouseFactor)
    88                 { this->mouseFactor_ = mouseFactor; }
     100                { mouseFactor_ = mouseFactor; }
    89101
    90102            const float getMouseFactor() const
    91                 { return this->mouseFactor_; }
    92 
    93             /**
    94             @brief Get the height of the playing field.
    95             @return Returns the height of the playing field.
    96             */
    97             Vector2 getFieldDimension() const
    98                 { return Vector2(this->fieldWidth_, this->fieldHeight_); }
    99 
    100             /**
    101             @brief Set the length of the bat.
    102             @param length The length of the bat (in z-direction) as percentage of the height of the playing field.
    103             */
    104             void setLength(float length)
    105                 { this->length_ = length; }
    106             /**
    107             @brief Get the length of the bat.
    108             @return Returns the length of the bat (in z-direction) as percentage of the height of the playing field.
    109             */
    110             float getLength() const
    111                 { return this->length_; }
     103                { return mouseFactor_; }
     104
     105            void setModelLeftHand(const std::string& modelLeftHand)
     106                { modelLeftHand_ = modelLeftHand; }
     107
     108            const std::string& getModelLeftHand() const
     109                { return modelLeftHand_; }
     110
     111            void setModelRightHand(const std::string& modelRightHand)
     112                { modelRightHand_ = modelRightHand; }
     113
     114            const std::string& getModelRightHand() const
     115                { return modelRightHand_; }
     116
     117            void setRocketPos(const float rocketPos)
     118                { rocketPos_ = rocketPos; }
     119
     120            const float getRocketPos() const
     121                { return rocketPos_; }
     122
     123                        void setPropellerPos(const float propellerPos)
     124                                { propellerPos_ = propellerPos; }
     125
     126                        const float getPropellerPos() const
     127                                { return propellerPos_; }
     128
     129                        void setBootsPos(const float bootsPos)
     130                                { bootsPos_ = bootsPos; }
     131
     132                        const float getBootsPos() const
     133                                { return bootsPos_; }
     134
     135            void setJumpSpeed(const float jumpSpeed)
     136                { jumpSpeed_ = jumpSpeed; }
     137
     138            const float getJumpSpeed() const
     139                { return jumpSpeed_; }
     140
     141            void setRocketSpeed(const float rocketSpeed)
     142                { rocketSpeed_ = rocketSpeed; }
     143
     144            const float getRocketSpeed() const
     145                { return rocketSpeed_; }
     146
     147            void setPropellerSpeed(const float propellerSpeed)
     148                { propellerSpeed_ = propellerSpeed; }
     149
     150            const float getPropellerSpeed() const
     151                { return propellerSpeed_; }
     152
     153            void setHandMinAngle(const float handMinAngle)
     154                { handMinAngle_ = handMinAngle; }
     155
     156            const float getHandMinAngle() const
     157                { return handMinAngle_; }
     158
     159            void setHandMaxAngle(const float handMaxAngle)
     160                { handMaxAngle_ = handMaxAngle; }
     161
     162            const float getHandMaxAngle() const
     163                { return handMaxAngle_; }
     164
     165            void setHandSpeed(const float handSpeed)
     166                { handSpeed_ = handSpeed; }
     167
     168            const float getHandSpeed() const
     169                { return handSpeed_; }
    112170
    113171            bool fireSignal;
     172            bool dead_;
     173
    114174        private:
    115             float movement_; //!< The amount (and direction), in z-direction, of movement of the bat.
    116             bool bMoveLocal_; //!< Helper to know whether the movement is caused by moveFrontBack() or moveRightLeft().
    117             float length_; //!< The length of the bat (in z-direction) as percentage of the height of the playing field.
    118             float fieldWidth_; //!< The height of the playing field.
     175            std::string modelLeftHand_;
     176            std::string modelRightHand_;
     177
     178            Model* leftHand_;
     179            Model* rightHand_;
     180
     181            float fieldWidth_;
    119182            float fieldHeight_;
    120             bool bSteadiedPosition_; //!< Helper boolean, to keep track of when to steady the position, to ensure network synchronicity.
    121183            float timeSinceLastFire;
    122184
     
    129191            float gravityAcceleration;
    130192            float mouseFactor_;
     193
     194            float jumpSpeed_;
     195            float handSpeed_;
     196            float handMaxAngle_;
     197            float handMinAngle_;
     198            float rocketPos_;
     199            float propellerPos_;
     200            float bootsPos_;
    131201            float maxFireRate;
    132202
    133203            float horizontalSpeed;
     204
     205            float handAngle_;
     206            bool animateHands_;
     207            bool turnUp_;
     208
     209            bool rocketActive_;
     210            bool propellerActive_;
     211            bool bootsActive_;
     212            bool shieldActive_;
     213            float rocketSpeed_;
     214            float propellerSpeed_;
    134215    };
    135216}
Note: See TracChangeset for help on using the changeset viewer.