Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 7, 2015, 2:26:27 PM (9 years ago)
Author:
bucyril
Message:

Added documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hoverHS15/src/modules/hover/HoverShip.cc

    r10784 r10929  
    2222 *   Author:
    2323 *      Cyrill Burgener
    24  *   Co-authors:
    25  *      ...
    2624 *
    2725 */
     
    2927/**
    3028    @file HoverShip.cc
    31     @brief Implementation of the HoverShip class.
     29    @brief Implementation of the HoverShip control
    3230*/
    3331
     
    7472    }
    7573
    76 
     74    /**
     75    @brief
     76        sets this ships jumpBoost
     77    @param jumpBoost
     78    */
    7779    void HoverShip::setJumpBoost(float jumpBoost)
    7880    {
     
    8082    }
    8183
    82 
     84    /**
     85    @brief
     86        returns this ships jumpBoost
     87    @returns jumpBoost
     88    */
    8389    float HoverShip::getJumpBoost()
    8490    {
     
    8894    /**
    8995    @brief
    90         Rotate in pitch direction.
    91         Due to added left, can also lead to an additional up-down motion.
     96        Removed, does nothing.
    9297    @param value
    93         A vector whose first component specifies the magnitude of the rotation. Positive means pitch up, negative means pitch down.
    9498    */
    9599    void HoverShip::rotatePitch(const Vector2& value) { }
     
    97101    /**
    98102    @brief
    99         Rotate in roll direction.
     103        Removed, does nothing.
    100104    @param value
    101         A vector whose first component specifies the magnitude of the rotation. Positive means roll left, negative means roll right.
    102105    */
    103106    void HoverShip::rotateRoll(const Vector2& value) { }
    104107
     108    /**
     109    @brief
     110        Checks if the ship is touching the floor. The ship can only jump if there is contact with someting beneath it.
     111    */
    105112    bool HoverShip::collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint)
    106113    {
     
    118125    }
    119126
     127    /**
     128    @brief
     129        Makes the ship jump
     130    @param bBoost
     131    */
    120132    void HoverShip::boost(bool bBoost) {
    121133        if (bBoost && this->isFloor_)
     
    129141        }
    130142    }
    131 
    132     /*Hover* HoverShip::getGame()
    133     {
    134         if (game == NULL)
    135         {
    136             for (ObjectList<Hover>::iterator it = ObjectList<Hover>::begin(); it != ObjectList<Hover>::end(); ++it)
    137             {
    138                 game = *it;
    139             }
    140         }
    141         return game;
    142     }*/
    143143}
Note: See TracChangeset for help on using the changeset viewer.