Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 11, 2010, 12:34:00 AM (14 years ago)
Author:
landauf
Message:

merged doc branch back to trunk

Location:
code/trunk
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/CMakeLists.txt

    r7163 r7401  
    1919
    2020INCLUDE_DIRECTORIES(
    21   ${CMAKE_SOURCE_DIR}/src/external
    2221  ${CMAKE_SOURCE_DIR}/src/libraries
    2322  ${CMAKE_CURRENT_SOURCE_DIR}
  • code/trunk/src/orxonox/Main.cc

    r7163 r7401  
    4343#include "Main.h"
    4444
    45 SetCommandLineSwitch(console).information("Start in console mode (text IO only)");
    46 // Shortcuts for easy direct loading
    47 SetCommandLineSwitch(server).information("Start in server mode");
    48 SetCommandLineSwitch(client).information("Start in client mode");
    49 SetCommandLineSwitch(dedicated).information("Start in dedicated server mode");
    50 SetCommandLineSwitch(standalone).information("Start in standalone mode");
    51 SetCommandLineSwitch(dedicatedClient).information("Start in dedicated client mode");
    52 
    5345DeclareToluaInterface(Orxonox);
    5446DeclareToluaInterface(Network);
     
    5648namespace orxonox
    5749{
     50    SetCommandLineSwitch(console).information("Start in console mode (text IO only)");
     51    SetCommandLineSwitch(server).information("Start in server mode");
     52    SetCommandLineSwitch(client).information("Start in client mode");
     53    SetCommandLineSwitch(dedicated).information("Start in dedicated server mode");
     54    SetCommandLineSwitch(standalone).information("Start in standalone mode");
     55    SetCommandLineSwitch(dedicatedClient).information("Start in dedicated client mode");
     56
     57    SetCommandLineArgument(generateDoc, "")
     58        .information("Generates a Doxygen file from things like SetConsoleCommand");
     59
    5860    /**
    5961    @brief
     
    6466        Game* game = new Game(strCmdLine);
    6567
    66         game->setStateHierarchy(
    67         "root"
    68         " graphics"
    69         "  mainMenu"
    70         "  standalone,server,client"
    71         "   level"
    72         " server,client"
    73         "  level"
    74         );
     68        if (CommandLineParser::getValue("generateDoc").getString().empty())
     69        {
     70            game->setStateHierarchy(
     71            "root"
     72            " graphics"
     73            "  mainMenu"
     74            "  standalone,server,client"
     75            "   level"
     76            " server,client"
     77            "  level"
     78            );
    7579
    76         game->requestState("root");
     80            game->requestState("root");
    7781
    78         // Some development hacks (not really, but in the future, this calls won't make sense anymore)
    79         if (CommandLineParser::getValue("standalone").getBool())
    80             Game::getInstance().requestStates("graphics, standalone, level");
    81         else if (CommandLineParser::getValue("server").getBool())
    82             Game::getInstance().requestStates("graphics, server, level");
    83         else if (CommandLineParser::getValue("client").getBool())
    84             Game::getInstance().requestStates("graphics, client, level");
    85         else if (CommandLineParser::getValue("dedicated").getBool())
    86             Game::getInstance().requestStates("server, level");
    87         else if (CommandLineParser::getValue("dedicatedClient").getBool())
    88             Game::getInstance().requestStates("client, level");
    89         else
    90         {
    91             if (!CommandLineParser::getValue("console").getBool())
    92                 Game::getInstance().requestStates("graphics, mainMenu");
     82            // Some development hacks (not really, but in the future, these calls won't make sense anymore)
     83            if (CommandLineParser::getValue("standalone").getBool())
     84                Game::getInstance().requestStates("graphics, standalone, level");
     85            else if (CommandLineParser::getValue("server").getBool())
     86                Game::getInstance().requestStates("graphics, server, level");
     87            else if (CommandLineParser::getValue("client").getBool())
     88                Game::getInstance().requestStates("graphics, client, level");
     89            else if (CommandLineParser::getValue("dedicated").getBool())
     90                Game::getInstance().requestStates("server, level");
     91            else if (CommandLineParser::getValue("dedicatedClient").getBool())
     92                Game::getInstance().requestStates("client, level");
     93            else
     94            {
     95                if (!CommandLineParser::getValue("console").getBool())
     96                    Game::getInstance().requestStates("graphics, mainMenu");
     97            }
     98
     99            game->run();
    93100        }
    94101
    95         game->run();
    96102        delete game;
    97103
  • code/trunk/src/orxonox/collisionshapes/CollisionShape.cc

    r5781 r7401  
    150150    }
    151151
    152     void CollisionShape::calculateLocalInertia(btScalar mass, btVector3& inertia) const
     152    void CollisionShape::calculateLocalInertia(float mass, btVector3& inertia) const
    153153    {
    154154        if (this->collisionShape_)
  • code/trunk/src/orxonox/controllers/ArtificialController.cc

    r7284 r7401  
    558558
    559559    /**
    560         @brief Master sets its slaves free for @var FREEDOM_COUNT seconds.
     560        @brief Master sets its slaves free for @ref FREEDOM_COUNT seconds.
    561561    */
    562562    void ArtificialController::forceFreeSlaves()
     
    665665        @brief Master begins to follow a pawn. Is a "specific master action".
    666666        @param pawn pawn to follow.
    667         @param alaways follows pawn forever if true (false if omitted).
     667        @param always follows pawn forever if true (false if omitted).
    668668        @param secondsToFollow seconds to follow the pawn if always is false. Will follow pawn 100 seconds if omitted (set in header).
    669669    */
  • code/trunk/src/orxonox/gamestates/GSServer.cc

    r6105 r7401  
    5353    void GSServer::activate()
    5454    {
    55         GameMode::setHasServer(true);
     55        GameMode::setIsServer(true);
    5656
    5757        this->server_ = new Server(CommandLineParser::getValue("port"));
     
    6666        delete this->server_;
    6767
    68         GameMode::setHasServer(false);
     68        GameMode::setIsServer(false);
    6969    }
    7070
  • code/trunk/src/orxonox/graphics/Light.h

    r7163 r7401  
    8383            /**
    8484                @brief Sets the attenuation parameters of the light source i.e. how it diminishes with distance.
     85                @param attenuation The parameters of the attenuation (see description)
    8586
    86                 @param attenuation.x range (The absolute upper range of the light in world units)
    87                 @param attenuation.y constant (The constant factor in the attenuation formula: 1.0 means never attenuate, 0.0 is complete attenuation)
    88                 @param attenuation.z linear (The linear factor in the attenuation formula: 1 means attenuate evenly over the distance)
    89                 @param attenuation.w quadratic (The quadratic factor in the attenuation formula: adds a curvature to the attenuation formula)
     87                 - @a attenuation.x range (The absolute upper range of the light in world units)
     88                 - @a attenuation.y constant (The constant factor in the attenuation formula: 1.0 means never attenuate, 0.0 is complete attenuation)
     89                 - @a attenuation.z linear (The linear factor in the attenuation formula: 1 means attenuate evenly over the distance)
     90                 - @a attenuation.w quadratic (The quadratic factor in the attenuation formula: adds a curvature to the attenuation formula)
    9091
    9192                Quote from the Ogre API:
     
    120121            /**
    121122                @brief Sets the range of a spotlight, i.e. the angle of the inner and outer cones and the rate of falloff between them.
    122 
    123                 @param spotlightRange.x innerAngle (The angle covered by the bright inner cone)
    124                 @param spotlightRange.x outerAngle (The angle covered by the outer cone)
    125                 @param spotlightRange.x falloff (The rate of falloff between the inner and outer cones. 1.0 means a linear falloff, less means slower falloff, higher means faster falloff.)
     123                @param spotlightRange The parameters of the spotlight (see description)
     124               
     125                 - @a spotlightRange.x innerAngle (The angle covered by the bright inner cone)
     126                 - @a spotlightRange.x outerAngle (The angle covered by the outer cone)
     127                 - @a spotlightRange.x falloff (The rate of falloff between the inner and outer cones. 1.0 means a linear falloff, less means slower falloff, higher means faster falloff.)
    126128            */
    127129            inline void setSpotlightRange(const Vector3& spotlightRange)
  • code/trunk/src/orxonox/interfaces/Pickupable.h

    r7163 r7401  
    161161            @brief Facilitates the creation of a PickupSpawner upon dropping of the Pickupable.
    162162                   This method must be implemented by any class directly inheriting from Pickupable. It is most easily done by just creating a new DroppedPickup, e.g.:
    163                    DroppedPickup(BaseObject* creator, Pickupable* pickup, const Vector3& position, float triggerDistance);
    164             @param position The position at which the PickupSpawner should be placed.
     163                   DroppedPickup(BaseObject* creator, Pickupable* pickup, PickupCarrier* carrier, float triggerDistance);
    165164            @return Returns true if a spawner was created, false if not.
    166165            */
  • code/trunk/src/orxonox/overlays/GUISheet.cc

    r7163 r7401  
    5454    }
    5555
    56     void GUISheet::XMLPort(Element& xmlElement, XMLPort::Mode mode)
     56    void GUISheet::XMLPort(Element& xmlelement, XMLPort::Mode mode)
    5757    {
    58         SUPER(GUISheet, XMLPort, xmlElement, mode);
     58        SUPER(GUISheet, XMLPort, xmlelement, mode);
    5959
    60         XMLPortParam(GUISheet, "showOnLoad",   setShowOnLoad,     getShowOnLoad,     xmlElement, mode);
    61         XMLPortParam(GUISheet, "hidePrevious", setPreviousHiding, getPreviousHiding, xmlElement, mode);
    62         XMLPortParam(GUISheet, "sheetName",    setSheetName,      getSheetName,      xmlElement, mode);
    63         XMLPortParam(GUISheet, "backgroundImage",  setBackgroundImage,  getBackgroundImage,  xmlElement, mode);
     60        XMLPortParam(GUISheet, "showOnLoad",   setShowOnLoad,     getShowOnLoad,     xmlelement, mode);
     61        XMLPortParam(GUISheet, "hidePrevious", setPreviousHiding, getPreviousHiding, xmlelement, mode);
     62        XMLPortParam(GUISheet, "sheetName",    setSheetName,      getSheetName,      xmlelement, mode);
     63        XMLPortParam(GUISheet, "backgroundImage",  setBackgroundImage,  getBackgroundImage,  xmlelement, mode);
    6464
    6565        if (this->bShowOnLoad_)
  • code/trunk/src/orxonox/overlays/GUISheet.h

    r6746 r7401  
    4444        ~GUISheet();
    4545
    46         void XMLPort(Element& xmlElement, XMLPort::Mode mode);
     46        void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    4747
    4848        void show();
  • code/trunk/src/orxonox/overlays/InGameConsole.cc

    r7284 r7401  
    454454    /**
    455455        @brief Prints string to bottom line.
    456         @param s String to be printed
     456        @param text The string to be printed
     457        @param type The type of the text, defines the color
     458        @param index The index of the text overlay in which the string will be displayed
     459        @param alwaysShift If true the ohter lines in the console are always shifted by one line
    457460    */
    458461    void InGameConsole::print(const std::string& text, Shell::LineType type, int index, bool alwaysShift)
  • code/trunk/src/orxonox/overlays/OrxonoxOverlay.cc

    r7284 r7401  
    126126        BaseObject::XMLPort()
    127127    */
    128     void OrxonoxOverlay::XMLPort(Element& xmlElement, XMLPort::Mode mode)
    129     {
    130         SUPER(OrxonoxOverlay, XMLPort, xmlElement, mode);
    131 
    132         XMLPortParam(OrxonoxOverlay, "size",      setSize,      getSize,      xmlElement, mode);
    133         XMLPortParam(OrxonoxOverlay, "pickpoint", setPickPoint, getPickPoint, xmlElement, mode);
    134         XMLPortParam(OrxonoxOverlay, "position",  setPosition,  getPosition,  xmlElement, mode);
    135         XMLPortParam(OrxonoxOverlay, "rotation",  setRotation,  getRotation,  xmlElement, mode);
    136         XMLPortParam(OrxonoxOverlay, "correctaspect", setAspectCorrection,   getAspectCorrection,   xmlElement, mode);
    137         XMLPortParam(OrxonoxOverlay, "background",    setBackgroundMaterial, getBackgroundMaterial, xmlElement, mode);
     128    void OrxonoxOverlay::XMLPort(Element& xmlelement, XMLPort::Mode mode)
     129    {
     130        SUPER(OrxonoxOverlay, XMLPort, xmlelement, mode);
     131
     132        XMLPortParam(OrxonoxOverlay, "size",      setSize,      getSize,      xmlelement, mode);
     133        XMLPortParam(OrxonoxOverlay, "pickpoint", setPickPoint, getPickPoint, xmlelement, mode);
     134        XMLPortParam(OrxonoxOverlay, "position",  setPosition,  getPosition,  xmlelement, mode);
     135        XMLPortParam(OrxonoxOverlay, "rotation",  setRotation,  getRotation,  xmlelement, mode);
     136        XMLPortParam(OrxonoxOverlay, "correctaspect", setAspectCorrection,   getAspectCorrection,   xmlelement, mode);
     137        XMLPortParam(OrxonoxOverlay, "background",    setBackgroundMaterial, getBackgroundMaterial, xmlelement, mode);
    138138    }
    139139
     
    306306        The name of the overlay defined BaseObject::setName() (usually done with the "name"
    307307        attribute in the xml file).
     308    @param scale
     309        The scaling factor
    308310    */
    309311    /*static*/ void OrxonoxOverlay::scaleOverlay(const std::string& name, float scale)
     
    346348        The name of the overlay defined BaseObject::setName() (usually done with the "name"
    347349        attribute in the xml file).
     350    @param scroll
     351        The relative translation of the overlay
    348352    */
    349353    /*static*/ void OrxonoxOverlay::scrollOverlay(const std::string& name, const Vector2& scroll)
     
    360364        The name of the overlay defined BaseObject::setName() (usually done with the "name"
    361365        attribute in the xml file).
     366    @param angle
     367        The rotation angle in degree
    362368    */
    363369    /*static*/ void OrxonoxOverlay::rotateOverlay(const std::string& name, const Degree& angle)
  • code/trunk/src/orxonox/overlays/OrxonoxOverlay.h

    r6753 r7401  
    9090        virtual ~OrxonoxOverlay();
    9191
    92         virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode);
     92        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    9393
    9494        virtual void changedName();
  • code/trunk/src/orxonox/overlays/OverlayGroup.cc

    r7284 r7401  
    7171        BaseObject::XMLPort()
    7272    */
    73     void OverlayGroup::XMLPort(Element& xmlElement, XMLPort::Mode mode)
    74     {
    75         SUPER(OverlayGroup, XMLPort, xmlElement, mode);
    76 
    77         XMLPortParam(OverlayGroup, "scale",  setScale,  getScale,  xmlElement, mode);
    78         XMLPortParam(OverlayGroup, "scroll", setScroll, getScroll, xmlElement, mode);
     73    void OverlayGroup::XMLPort(Element& xmlelement, XMLPort::Mode mode)
     74    {
     75        SUPER(OverlayGroup, XMLPort, xmlelement, mode);
     76
     77        XMLPortParam(OverlayGroup, "scale",  setScale,  getScale,  xmlelement, mode);
     78        XMLPortParam(OverlayGroup, "scroll", setScroll, getScroll, xmlelement, mode);
    7979        // loads all the child elements
    80         XMLPortObject(OverlayGroup, OrxonoxOverlay, "", addElement, getElement, xmlElement, mode);
     80        XMLPortObject(OverlayGroup, OrxonoxOverlay, "", addElement, getElement, xmlelement, mode);
    8181    }
    8282
     
    114114    @brief
    115115        Removes an element from the map.
    116     @param name
    117         The name of the element that is removed.
     116    @param element
     117        A pointer to the element that is removed.
    118118    @return
    119119        Returns true if there was such an element to remove, false if not.
     
    181181        The name of the group defined BaseObject::setName() (usually done with the "name"
    182182        attribute in the xml file).
     183    @param scale
     184        The scaling factor
    183185    */
    184186    /*static*/ void OverlayGroup::scaleGroup(const std::string& name, float scale)
     
    197199        The name of the group defined BaseObject::setName() (usually done with the "name"
    198200        attribute in the xml file).
     201    @param scroll
     202        The relative translation of the overlay group
    199203    */
    200204    /*static*/ void OverlayGroup::scrollGroup(const std::string& name, const Vector2& scroll)
  • code/trunk/src/orxonox/overlays/OverlayGroup.h

    r6054 r7401  
    5858        ~OverlayGroup();
    5959
    60         virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode);
     60        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    6161
    6262        static void toggleVisibility(const std::string& name);
  • code/trunk/src/orxonox/worldentities/WorldEntity.cc

    r7163 r7401  
    267267    @brief
    268268        Attaches this object to a parent SceneNode.
    269     @Remarks
     269    @remarks
    270270        Only use this method if you know exactly what you're doing!
    271271        Normally, attaching works internally by attaching WE's.
     
    282282    @brief
    283283        Detaches this object from a parent SceneNode.
    284     @Remarks
     284    @remarks
    285285        Only use this method if you know exactly what you're doing!
    286286        Normally, attaching works internally by attaching WE's.
     
    355355        Attaches a child WorldEntity to this object. This calls notifyBeingAttached()
    356356        of the child WE.
    357     @Note
     357    @note
    358358        The collision shape of the child object gets attached nevertheless. That also means
    359359        that you can change the collision shape of the child and it correctly cascadeds the changes to this instance.
     
    628628    @brief
    629629        Sets the three dimensional scaling of this object.
    630     @Note
     630    @note
    631631        Scaling physical objects has not yet been implemented and is therefore forbidden.
    632632    */
     
    650650    @brief
    651651        Translates this WorldEntity by a vector.
     652    @param distance
     653        The relative distance of the translation
    652654    @param relativeTo
    653         @see WorldEntity::TransformSpace
     655        The TransformSpace of this translation
    654656    */
    655657    void WorldEntity::translate(const Vector3& distance, TransformSpace relativeTo)
     
    678680    @brief
    679681        Rotates this WorldEntity by a quaternion.
     682    @param rotation
     683        The desired relative rotation
    680684    @param relativeTo
    681         @see WorldEntity::TransformSpace
     685        The TransformSpace of this translation
    682686    */
    683687    void WorldEntity::rotate(const Quaternion& rotation, TransformSpace relativeTo)
     
    703707    @brief
    704708        Makes this WorldEntity look at a specific target location.
     709    @param target
     710        An absolute point in the space which defines the direction of the entity
    705711    @param relativeTo
    706         @see WorldEntity::TransformSpace
     712        The TransformSpace of this translation
    707713    @param localDirectionVector
    708714        The vector which normally describes the natural direction of the object, usually -Z.
     
    729735    @brief
    730736        Makes this WorldEntity look in specific direction.
     737    @param direction
     738        A point relative to the position of the WorldEntity which defines its orientation
    731739    @param relativeTo
    732         @see WorldEntity::TransformSpace
     740        The TransformSpace of this translation
    733741    @param localDirectionVector
    734742        The vector which normally describes the natural direction of the object, usually -Z.
     
    773781    /**
    774782    @brief
    775         Sets the CollisionType. This alters the object significantly! @see CollisionType.
    776     @Note
     783        Sets the CollisionType. This alters the object significantly!
     784    @note
    777785        Operation does not work on attached WorldEntities.
    778786    */
     
    900908        Recalculates the accumulated child mass and calls recalculateMassProps()
    901909        and notifies the parent of the change.
    902     @Note
     910    @note
    903911        Called by a child WE
    904912    */
     
    919927    @brief
    920928        Undertakes the necessary steps to change the collision shape in Bullet, even at runtime.
    921     @Note
     929    @note
    922930        - called by this->collisionShape_
    923931        - May have a REALLY big overhead when called continuously at runtime, because then we need
  • code/trunk/src/orxonox/worldentities/WorldEntity.h

    r7163 r7401  
    299299            @brief
    300300                Returns the diagonal elements of the inertia tensor when calculated in local coordinates.
    301             @Note
     301            @note
    302302                The local inertia tensor cannot be set, but is calculated by Bullet according to the collisionShape.
    303303                With compound collision shapes, an approximation is used.
     
    367367            @param otherObject
    368368                The object this one has collided into.
    369             @pram contactPoint
     369            @param contactPoint
    370370                Contact point provided by Bullet. Holds more information and can me modified. See return value.
    371             @Return
     371            @return
    372372                Returning false means that no modification to the contactPoint has been made. Return true otherwise!
    373             @Note
     373            @note
    374374                Condition is that enableCollisionCallback() was called.
    375375            */
Note: See TracChangeset for help on using the changeset viewer.