Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 29, 2018, 12:15:19 PM (7 years ago)
Author:
dreherm
Message:

Update for ghost controller and ghost class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/3DPacman_FS18/src/modules/3DPacman/PacmanGhost.h

    r11832 r11834  
    5555            virtual void rotatePitch(const Vector2& value);
    5656            virtual void rotateRoll(const Vector2& value);
    57 
     57           
     58            virtual void resetGhost();
    5859            /**
    5960            @brief Moves the Drone in the Front/Back-direction by the specifed amount.
     
    100101            inline void setPrimaryThrust( float thrust )
    101102                { this->primaryThrust_ = thrust; }
    102             //TODO: Place your set-functions here.
    103             // Hint: auxiliary thrust, rotation thrust.
    104            
     103            inline void setAuxillaryThrust( float thrust )
     104                { this->auxillaryThrust_ = thrust; }
     105            inline void setRotationThrust( float thrust )
     106                { this->rotationThrust_ = thrust; }
     107
     108            inline void setResetPosition(Vector3 rpos)
     109                { this->resetposition = rpos; }   
     110     
    105111            /**
    106112            @brief Gets the primary thrust to the input amount.
     
    109115            inline float getPrimaryThrust()
    110116                { return this->primaryThrust_; }
    111             //TODO: Place your get-functions here.
     117            inline float getAuxillaryThrust()
     118                { return this->auxillaryThrust_; }
     119            inline float getRotationThrust()
     120                { return this->rotationThrust_; }
     121           
     122            inline Vector3 getResetPosition()
     123                { return this->resetposition; }       
     124
     125
    112126
    113127        private:
     
    119133            float auxiliaryThrust_; //!< The amount of auxiliary thrust. Used for all other movements (except for rotations).
    120134            float rotationThrust_; //!< The amount of rotation thrust. Used for rotations only.s
     135            Vector3 resetposition; //Start position for Ghost
    121136       
    122137    };
Note: See TracChangeset for help on using the changeset viewer.