Adds doxygen comments to SBF namespace.
Adds doxygen header to header files.
This commit is contained in:
@@ -1,8 +1,19 @@
|
||||
#ifndef ARCHETYPES_H__
|
||||
#define ARCHETYPES_H__
|
||||
/***************************************************************************************
|
||||
* @file Archetypes.h
|
||||
*
|
||||
* @brief Defines constants and functions for working with archetypes.
|
||||
* @copyright
|
||||
* Copyright 2023 Tom Hicks
|
||||
* Licensed under the MIT license see the LICENSE file for details.
|
||||
***************************************************************************************/
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
/** \addtogroup Archetypes
|
||||
* @{
|
||||
*/
|
||||
namespace SBF {
|
||||
const int kArchetypeArchitectId = 1;
|
||||
const std::string kArchetypeArchitectLabel = "Architect";
|
||||
@@ -99,7 +110,14 @@ namespace SBF {
|
||||
kArchetypeVisionaryLabel,
|
||||
};
|
||||
|
||||
/// @brief Gets the label for the given archetype id.
|
||||
/// @param archetypeId The id of the archetype to get the label for.
|
||||
/// @return The label for the requested archetype.
|
||||
std::string GetArchetypeLabel(int archetypeId);
|
||||
|
||||
/// @brief Fills the provided vector with all of the archetype labels. It clears the vector before filling.
|
||||
/// @param archetypeLabels The vector to fill.
|
||||
void FillArchetypeLabels(std::vector<std::string>& archetypeLabels);
|
||||
} // End namespace SBF
|
||||
/** @}*/
|
||||
#endif // End !defined ARCHETYPES_H__
|
||||
|
||||
@@ -1,8 +1,19 @@
|
||||
#ifndef ATTRIBUTES_H__
|
||||
#define ATTRIBUTES_H__
|
||||
/***************************************************************************************
|
||||
* @file Attributes.h
|
||||
*
|
||||
* @brief Defines constants and functions for working with attribute groups and attriubtes.
|
||||
* @copyright
|
||||
* Copyright 2023 Tom Hicks
|
||||
* Licensed under the MIT license see the LICENSE file for details.
|
||||
***************************************************************************************/
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
/** \addtogroup Attributes
|
||||
* @{
|
||||
*/
|
||||
namespace SBF {
|
||||
const int kPhysicalAttributeStrengthId = 1;
|
||||
const std::string kPhysicalAttributeStrengthLabel = "Strength";
|
||||
@@ -87,8 +98,21 @@ namespace SBF {
|
||||
kAttributeGroupMentalLabel,
|
||||
};
|
||||
|
||||
/// @brief Gets the label for the attribute group with the specified id.
|
||||
/// @param attributeGroupId The id of the attribute group to return the label for.
|
||||
/// @return The label of the specified attribute group.
|
||||
std::string GetAttributeGroupLabel(int attributeGroupId);
|
||||
|
||||
/// @brief Gets the label for the attribute with the specified group id an attribute id.
|
||||
/// @param attributeGroupId The id of the attribute group to return the label for.
|
||||
/// @param attributeId The id of the attribute withing the group to return the label for.
|
||||
/// @return The label of the specified attribute.
|
||||
std::string GetAttributeLabel(int attributeGroupId, int attributeId);
|
||||
|
||||
/// @brief
|
||||
/// @param attributeGroupId
|
||||
/// @param attributeId
|
||||
/// @return
|
||||
std::string GetAttributeLabelAbbreviation(int attributeGroupId, int attributeId);
|
||||
std::string GetPhysicalAttributeLabel(int attributeId);
|
||||
std::string GetPhysicalAttributeLabelAbbreviation(int attributeId);
|
||||
@@ -103,4 +127,5 @@ namespace SBF {
|
||||
void FillSocialAttributeLabels(std::vector<std::string>& socialAttributeLabels);
|
||||
void FillMentalAttributeLabels(std::vector<std::string>& mentalAttributeLabels);
|
||||
} // End namespace SBF
|
||||
/** @}*/
|
||||
#endif // End !defined ATTRIBUTES_H__
|
||||
|
||||
@@ -1,8 +1,19 @@
|
||||
#ifndef BACKGROUNDS_H__
|
||||
#define BACKGROUNDS_H__
|
||||
/***************************************************************************************
|
||||
* @file Backgrounds.h
|
||||
*
|
||||
* @brief Defines constants and funcions for working with backgrounds.
|
||||
* @copyright
|
||||
* Copyright 2023 Tom Hicks
|
||||
* Licensed under the MIT license see the LICENSE file for details.
|
||||
***************************************************************************************/
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
/** \addtogroup Backgrounds
|
||||
* @{
|
||||
*/
|
||||
namespace SBF {
|
||||
const int kBackgroundPoints = 5;
|
||||
const int kBackgroundAlliesId = 1;
|
||||
@@ -42,4 +53,5 @@ namespace SBF {
|
||||
std::string GetBackgroundLabel(int backgroundId);
|
||||
void FillBackgroundLabels(std::vector<std::string>& backgroundLabels);
|
||||
} // End namespace SBF
|
||||
/** @}*/
|
||||
#endif // End !defined BACKGROUNDS_H__
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
#ifndef CHARACTER_H__
|
||||
#define CHARACTER_H__
|
||||
/***************************************************************************************
|
||||
* @file Character.h
|
||||
*
|
||||
* @brief Defines CharacterType.
|
||||
* @copyright
|
||||
* Copyright 2023 Tom Hicks
|
||||
* Licensed under the MIT license see the LICENSE file for details.
|
||||
***************************************************************************************/
|
||||
#include "Colors.h"
|
||||
#include "Ranks.h"
|
||||
#include "Clans.h"
|
||||
@@ -13,6 +21,9 @@
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
/** \addtogroup Character
|
||||
* @{
|
||||
*/
|
||||
namespace SBF {
|
||||
int GetDisciplinePoints();
|
||||
int GetVirtuePoints();
|
||||
@@ -151,4 +162,5 @@ namespace SBF {
|
||||
int background_status;
|
||||
}; // End class CharacterType
|
||||
} // End namespace SBF
|
||||
/** @}*/
|
||||
#endif // !defined CHARACTER_H__
|
||||
|
||||
@@ -1,8 +1,19 @@
|
||||
#ifndef CLANS_H__
|
||||
#define CLANS_H__
|
||||
/***************************************************************************************
|
||||
* @file Clans.h
|
||||
*
|
||||
* @brief Defines constants and functions for working with clans.
|
||||
* @copyright
|
||||
* Copyright 2023 Tom Hicks
|
||||
* Licensed under the MIT license see the LICENSE file for details.
|
||||
***************************************************************************************/
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
/** \addtogroup Clans
|
||||
* @{
|
||||
*/
|
||||
namespace SBF {
|
||||
const int kClanAnarch = 1;
|
||||
const std::string kClanAnarchLabel = "Anarch";
|
||||
@@ -65,4 +76,5 @@ namespace SBF {
|
||||
std::string GetClanLabel(int clanId);
|
||||
void FillClanLabels(std::vector<std::string>& clans);
|
||||
} // End namespace SBF
|
||||
/** @}*/
|
||||
#endif // End !defined CLANS_H__
|
||||
|
||||
@@ -1,8 +1,19 @@
|
||||
#ifndef COLORS_H__
|
||||
#define COLORS_H__
|
||||
/***************************************************************************************
|
||||
* @file Colors.h
|
||||
*
|
||||
* @brief Defines constants and functions for working with screen colors.
|
||||
* @copyright
|
||||
* Copyright 2023 Tom Hicks
|
||||
* Licensed under the MIT license see the LICENSE file for details.
|
||||
***************************************************************************************/
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
/** \addtogroup Abilities
|
||||
* @{
|
||||
*/
|
||||
namespace SBF {
|
||||
const uint8_t kColorDarkBlack = 0;
|
||||
const uint8_t kColorDarkBlue = 1;
|
||||
@@ -30,4 +41,5 @@ namespace SBF {
|
||||
|
||||
void FillColors(std::vector<uint8_t> colors);
|
||||
} // End namespace SBF
|
||||
/** @}*/
|
||||
#endif // End !defined COLORS_H__
|
||||
|
||||
@@ -1,9 +1,20 @@
|
||||
#ifndef DERANGEMENTS_H__
|
||||
#define DERANGEMENTS_H__
|
||||
#include "Colors.h"
|
||||
/***************************************************************************************
|
||||
* @file Derangements.h
|
||||
*
|
||||
* @brief Defines constants and functions for working with derangements.
|
||||
* @copyright
|
||||
* Copyright 2023 Tom Hicks
|
||||
* Licensed under the MIT license see the LICENSE file for details.
|
||||
***************************************************************************************/
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
/** \addtogroup Derangements
|
||||
* @{
|
||||
*/
|
||||
namespace SBF {
|
||||
struct DerangementType {
|
||||
int id;
|
||||
@@ -173,4 +184,5 @@ namespace SBF {
|
||||
const DerangementType& GetDerangement(int derangementId);
|
||||
void FillDerangements(std::vector<DerangementType> derangements);
|
||||
} // End namespace SBF
|
||||
/** @}*/
|
||||
#endif // End !defined DERANGEMENTS_H__
|
||||
|
||||
@@ -1,8 +1,20 @@
|
||||
#ifndef DISCIPLINES_H__
|
||||
#define DISCIPLINES_H__
|
||||
/***************************************************************************************
|
||||
* @file Disciplines.h
|
||||
*
|
||||
* @brief Defines constants and functions for working with disciplines.
|
||||
* @copyright
|
||||
* Copyright 2023 Tom Hicks
|
||||
* Licensed under the MIT license see the LICENSE file for details.
|
||||
***************************************************************************************/
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
/** \addtogroup Disciplines
|
||||
* @{
|
||||
*/
|
||||
namespace SBF {
|
||||
const int kDisciplinePoints = 3;
|
||||
const int kDisciplineAnimalismId = 1;
|
||||
@@ -84,4 +96,5 @@ namespace SBF {
|
||||
const std::string GetDisciplineLabel(int disciplineId);
|
||||
void FillDisciplineLabels(std::vector<std::string> disciplineLabels);
|
||||
} // End namespace SBF
|
||||
/** @}*/
|
||||
#endif // End !defined DISCIPLINES_H__
|
||||
|
||||
@@ -1,8 +1,19 @@
|
||||
#ifndef GENDERS_H__
|
||||
#define GENDERS_H__
|
||||
/***************************************************************************************
|
||||
* @file Genders.h
|
||||
*
|
||||
* @brief Defines constants and functions for working with genders.
|
||||
* @copyright
|
||||
* Copyright 2023 Tom Hicks
|
||||
* Licensed under the MIT license see the LICENSE file for details.
|
||||
***************************************************************************************/
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
/** \addtogroup Genders
|
||||
* @{
|
||||
*/
|
||||
namespace SBF {
|
||||
const int kGenderMaleId = 1;
|
||||
const std::string kGenderMaleLabel = "Male";
|
||||
@@ -26,4 +37,5 @@ namespace SBF {
|
||||
const std::string& GetGenderLabel(int genderId);
|
||||
void FillGenderLabels(std::vector<std::string> genderLabels);
|
||||
} // End namespace SBF
|
||||
/** @}*/
|
||||
#endif // End !defined GENDERS_H__
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
#ifndef MENUS_H__
|
||||
#define MENUS_H__
|
||||
/***************************************************************************************
|
||||
* @file Menus.h
|
||||
*
|
||||
* @brief Defines constants and functions for working with menus.
|
||||
* @copyright
|
||||
* Copyright 2023 Tom Hicks
|
||||
* Licensed under the MIT license see the LICENSE file for details.
|
||||
***************************************************************************************/
|
||||
|
||||
namespace SBF {
|
||||
struct MenuStyle;
|
||||
struct MenuItem;
|
||||
@@ -8,6 +17,9 @@ namespace SBF {
|
||||
#include <string>
|
||||
#include <cstdint>
|
||||
|
||||
/** \addtogroup Menus
|
||||
* @{
|
||||
*/
|
||||
namespace SBF {
|
||||
using std::string;
|
||||
|
||||
@@ -47,5 +59,5 @@ namespace SBF {
|
||||
void NewMenuItemWithColor(MenuItem& item, string label, int id, uint8_t color);
|
||||
|
||||
} // End namespace SBF
|
||||
|
||||
/** @}*/
|
||||
#endif // !defined MENUS_H__
|
||||
|
||||
@@ -1,8 +1,19 @@
|
||||
#ifndef RANKS_H__
|
||||
#define RANKS_H__
|
||||
/***************************************************************************************
|
||||
* @file Ranks.h
|
||||
*
|
||||
* @brief Defines constants and functions for working with ranks.
|
||||
* @copyright
|
||||
* Copyright 2023 Tom Hicks
|
||||
* Licensed under the MIT license see the LICENSE file for details.
|
||||
***************************************************************************************/
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
/** \addtogroup
|
||||
* @{
|
||||
*/
|
||||
namespace SBF {
|
||||
const int kRankPrimaryId = 1;
|
||||
const std::string kRankPrimaryLabel = "Primary";
|
||||
@@ -24,4 +35,5 @@ namespace SBF {
|
||||
const RankType& GetRank(int rankId);
|
||||
void FillRanks(std::vector<RankType> ranks);
|
||||
} // End namespace SBF
|
||||
/** @}*/
|
||||
#endif // !defined RANKS_H__
|
||||
|
||||
@@ -1,7 +1,18 @@
|
||||
#ifndef UTILS_H__
|
||||
#define UTILS_H__
|
||||
/***************************************************************************************
|
||||
* @file Utils.h
|
||||
*
|
||||
* @brief Defines various utility functions.
|
||||
* @copyright
|
||||
* Copyright 2023 Tom Hicks
|
||||
* Licensed under the MIT license see the LICENSE file for details.
|
||||
***************************************************************************************/
|
||||
#include <string>
|
||||
|
||||
/** \addtogroup Utils
|
||||
* @{
|
||||
*/
|
||||
namespace SBF {
|
||||
using std::string;
|
||||
|
||||
@@ -13,4 +24,5 @@ namespace SBF {
|
||||
string string_dollar(size_t length, char ch);
|
||||
|
||||
} // End namespace SBF
|
||||
/** @}*/
|
||||
#endif // End !defined UTILS_H__
|
||||
|
||||
@@ -1,8 +1,19 @@
|
||||
#ifndef VIRTUES_H__
|
||||
#define VIRTUES_H__
|
||||
/***************************************************************************************
|
||||
* @file Virtues.h
|
||||
*
|
||||
* @brief Defines constants and functions for working with virtues.
|
||||
* @copyright
|
||||
* Copyright 2023 Tom Hicks
|
||||
* Licensed under the MIT license see the LICENSE file for details.
|
||||
***************************************************************************************/
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
/** \addtogroup Virtues
|
||||
* @{
|
||||
*/
|
||||
namespace SBF {
|
||||
const int kVirtuePoints = 7;
|
||||
const int kVirtueSelfControlId = 1;
|
||||
@@ -21,4 +32,5 @@ namespace SBF {
|
||||
const std::string GetVirtueLabel(int virtueId);
|
||||
void FillVirtueLabels(std::vector<std::string> virtueLabels);
|
||||
} // End namespace SBF
|
||||
/** @}*/
|
||||
#endif // End !defined VIRTUES_H__
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
#ifndef MAIN_H__
|
||||
#define MAIN_H__
|
||||
/***************************************************************************************
|
||||
* @file main.h
|
||||
*
|
||||
* @brief Defines stuff for the main app.
|
||||
* @copyright
|
||||
* Copyright 2023 Tom Hicks
|
||||
* Licensed under the MIT license see the LICENSE file for details.
|
||||
***************************************************************************************/
|
||||
|
||||
/** \addtogroup Unsorted
|
||||
* @{
|
||||
*/
|
||||
namespace SBF {
|
||||
|
||||
}
|
||||
/** @}*/
|
||||
#endif
|
||||
@@ -1,8 +1,21 @@
|
||||
#ifndef SBF_H__
|
||||
#define SBF_H__
|
||||
/***************************************************************************************
|
||||
* @file sbf.h
|
||||
*
|
||||
* @brief Holds code copied from the BASIC version that hasn't been relocated yet.
|
||||
* @copyright
|
||||
* Copyright 2023 Tom Hicks
|
||||
* Licensed under the MIT license see the LICENSE file for details.
|
||||
***************************************************************************************/
|
||||
#include "Colors.h"
|
||||
#include "Menus.h"
|
||||
#include "Character.h"
|
||||
#include <string>
|
||||
|
||||
/** \addtogroup Unsorted
|
||||
* @{
|
||||
*/
|
||||
namespace SBF {
|
||||
using std::string;
|
||||
|
||||
@@ -809,3 +822,5 @@ End Sub
|
||||
|
||||
*/
|
||||
} // End namespace SBF
|
||||
/** #}*/
|
||||
#endif // End !defined SBF_H__
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
#ifndef TEST_H__
|
||||
#define TEST_H__
|
||||
/***************************************************************************************
|
||||
* @file test.h
|
||||
*
|
||||
* @brief Defines structs and functions for implementing TinyTest.
|
||||
* @copyright
|
||||
* Copyright 2023 Tom Hicks
|
||||
* Licensed under the MIT license see the LICENSE file for details.
|
||||
***************************************************************************************/
|
||||
|
||||
#include <cstdint>
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
|
||||
Reference in New Issue
Block a user