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/JumpEnemy.h

    r10074 r10111  
    2121 *
    2222 *   Author:
    23  *      Fabian 'x3n' Landau
     23 *      Fabien Vultier
    2424 *   Co-authors:
    2525 *      ...
     
    4545namespace orxonox
    4646{
    47 
    48     /**
    49     @brief
    50         This class manages the ball for @ref orxonox::Jump "Jump".
    51 
    52         It is responsible for both the movement of the ball in the x,z-plane as well as its interaction with the boundaries of the playing field (defined by the @ref orxonox::JumpCenterpoint "JumpCenterpoint") and the @ref orxonox::JumpFigure "JumpFigures". Or more precisely, it makes the ball bounce off then upper and lower delimiters of the playing field, it makes the ball bounce off the bats and also detects when a player scores and takes appropriate measures.
    53 
    54     @author
    55         Fabian 'x3n' Landau
    56 
    57     @ingroup Jump
    58     */
    5947    class _JumpExport JumpEnemy : public MovableEntity
    6048    {
     
    6250            JumpEnemy(Context* context);
    6351            virtual ~JumpEnemy();
    64 
    6552            virtual void tick(float dt);
    66 
    6753            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    68 
    69             /**
    70             @brief Set the dimensions of the playing field.
    71             @param width The width of the playing field.
    72             @param height The height of the playing field.
    73             */
    7454            void setFieldDimension(float width, float height)
    7555                { this->fieldWidth_ = width; this->fieldHeight_ = height; }
    76             /**
    77             @brief Get the dimensions of the playing field.
    78             @param dimension A vector with the width as the first and height as the second component.
    79             */
    8056            void setFieldDimension(const Vector2& dimension)
    8157                { this->setFieldDimension(dimension.x, dimension.y); }
    82             /**
    83             @brief Get the dimensions of the playing field.
    84             @return Returns a vector with the width as the first and height as the second component.
    85             */
    8658            Vector2 getFieldDimension() const
    8759                { return Vector2(this->fieldWidth_, this->fieldHeight_); }
    88 
    8960            void setWidth(const float width)
    9061                { this->width_ = width; }
     
    9768
    9869            virtual void setProperties(float newLeftBoundary, float newRightBoundary, float newLowerBoundary, float newUpperBoundary, float newHSpeed, float newVSpeed);
    99 
    100             void setFigure(WeakPtr<JumpFigure> bats); //!< Set the bats for the ball.
     70            void setFigure(WeakPtr<JumpFigure> bats);
    10171            virtual void touchFigure();
    10272            bool dead_;
    10373        protected:
    104 
    10574            float width_;
    10675            float height_;
    107 
    108             float fieldWidth_; //!< The width of the playing field.
    109             float fieldHeight_; //!< The height of the playing field.
    110 
     76            float fieldWidth_;
     77            float fieldHeight_;
    11178            float leftBoundary_;
    11279            float rightBoundary_;
    11380            float lowerBoundary_;
    11481            float upperBoundary_;
    115 
    116             WeakPtr<JumpFigure> figure_; //!< An array with the two bats.
     82            WeakPtr<JumpFigure> figure_;
    11783    };
    11884}
Note: See TracChangeset for help on using the changeset viewer.