Skip to content

Commit

Permalink
🧹 Doxygen: Consolidated @defgroup commands to 'Modules.h'.
Browse files Browse the repository at this point in the history
Also fixed many 'missing title' warnings.
Also fixed INPUT tag.
  • Loading branch information
ohlidalp committed Feb 26, 2022
1 parent 65b4cd5 commit 6d8af64
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 35 deletions.
3 changes: 1 addition & 2 deletions doc/doxygen/Doxyfile.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -761,8 +761,7 @@ WARN_LOGFILE =
# spaces.
# Note: If this tag is empty the current directory is searched.

INPUT = @DOXYGEN_SOURCE_DIR@/MainPage.h \
@DOXYGEN_SOURCE_DIR@/Overview.h \
INPUT = @DOXYGEN_SOURCE_DIR@/ \
@PROJECT_SOURCE_DIR@/source \
@PROJECT_SOURCE_DIR@/doc/angelscript

Expand Down
34 changes: 34 additions & 0 deletions doc/doxygen/Modules.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/// @defgroup Application Application
/// Integration with host OS, hardware and drivers

/// @defgroup GameState Game state
/// Makes all gameplay features work together.

/// @defgroup MsgQueue Message queue
/// Ensures everything gets executed at right time & in right order.

/// @defgroup Physics Physics
/// Soft-body physics and associated simulations.

/// @defgroup Collisions Collisions
/// Static & dynamic collision detection system

/// @defgroup Trucks Land vehicles
/// Cars, trucks, rovers, ATVs, anything.

/// @defgroup Aerial Aerial
/// Airplanes and helicopters.

/// @defgroup Character Character
/// Wandering the terrain on foot.

/// @defgroup Marine Marine
/// Ships and boats of any size and function.

/// @defgroup Console Console
/// Centerpiece of the application; parses command line & config, maintains cvars, logs messages.

/// @defgroup ConsoleCmd Console commmands
/// Built-in console commands.


5 changes: 2 additions & 3 deletions source/main/AppContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@

namespace RoR {

/// @defgroup Application
/// Integration with host OS, hardware and drivers.
/// @addtogroup Application
/// @{

/// Central setup and event handler for input/windowing/rendering.
Expand Down Expand Up @@ -104,6 +103,6 @@ class AppContext: public OgreBites::WindowEventListener,
RoR::ForceFeedback m_force_feedback;
};

/// @} // defgroup Application
/// @} // addtogroup Application

} // namespace RoR
22 changes: 4 additions & 18 deletions source/main/GameContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,10 @@

namespace RoR {

/// @defgroup Trucks Land vehicles
/// Cars, trucks, rovers, ATVs, anything.

/// @defgroup Aerial
/// Airplanes and helicopters.

/// @defgroup Character
/// Wandering the terrain on foot.

/// @defgroup Marine
/// Ships and boats of any size and function.

/// @defgroup GameState Game state
/// Makes all gameplay features work together.
/// @addtogroup GameState
/// @{

/// @defgroup MsgQueue Message queue
/// Ensures everything gets executed at right time & in right order.
/// @addtogroup MsgQueue
/// @{

/// Unified game event system - all requests and state changes are reported using a message.
Expand All @@ -75,7 +61,7 @@ struct Message

typedef std::queue < Message, std::list<Message>> GameMsgQueue;

/// @} // defgroup MsgQueue
/// @} // addtogroup MsgQueue

/// Central game state manager.
/// RoR's gameplay is quite simple in structure, it consists of:
Expand Down Expand Up @@ -213,6 +199,6 @@ class GameContext
SceneMouse m_scene_mouse; //!< Mouse interaction with scene
};

/// @} // defgroup GameState
/// @} // addtogroup GameState

} // namespace RoR
5 changes: 2 additions & 3 deletions source/main/physics/Actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@

namespace RoR {

/// @defgroup Physics
/// Soft-body physics and associated simulations.
/// @addtogroup Physics
/// @{

/// Softbody object; can be anything from soda can to a space shuttle
Expand Down Expand Up @@ -577,6 +576,6 @@ class Actor : public ZeroedMemoryAllocator
std::deque<NetUpdate> m_net_updates; //!< Incoming stream of NetUpdates
};

/// @} // defgroup Physics
/// @} // addtogroup Physics

} // namespace RoR
2 changes: 1 addition & 1 deletion source/main/physics/ActorManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

namespace RoR {

/// @defgroup Physics
/// @addtogroup Physics
/// @{

/// Builds and manages softbody actors (physics on background thread, networking)
Expand Down
5 changes: 2 additions & 3 deletions source/main/physics/collision/Collisions.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ struct eventsource_t
/// @addtogroup Physics
/// @{

/// @defgroup Collisions
/// Static & dynamic collision detection systems.
/// @addtogroup Collisions
/// @{

class Collisions : public ZeroedMemoryAllocator
Expand Down Expand Up @@ -201,7 +200,7 @@ class Collisions : public ZeroedMemoryAllocator

Ogre::Vector3 primitiveCollision(node_t* node, Ogre::Vector3 velocity, float mass, Ogre::Vector3 normal, float dt, ground_model_t* gm, float penetration = 0);

/// @} // defgroup Collisions
/// @} // addtogroup Collisions
/// @} // addtogroup Physics

} // namespace RoR
3 changes: 1 addition & 2 deletions source/main/system/Console.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@

namespace RoR {

/// @defgroup Console
/// Centerpiece of the application; parses command line & config, maintains cvars, logs messages.
/// @addtogroup Console
/// @{

/// Global game console backend. Frontend is RoR::GUI::ConsoleView.
Expand Down
7 changes: 4 additions & 3 deletions source/main/system/ConsoleCmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ using namespace RoR;
/// @{

// -------------------------------------------------------------------------------------
/// @defgroup ConsoleCmd Console commmands
// Builtin console commands.

/// @addtogroup ConsoleCmd
/// @{

class GravityCmd: public ConsoleCmd
Expand Down Expand Up @@ -595,8 +597,7 @@ class ClearCmd: public ConsoleCmd
}
};

/// @} // defgroup Builtin console commands

/// @} // addtogroup ConsoleCmd

// -------------------------------------------------------------------------------------
// Console integration
Expand Down

0 comments on commit 6d8af64

Please # to comment.