More doxygen.

This commit is contained in:
Jason Felds
2011-02-25 11:12:04 -05:00
parent d3b1d7fa75
commit 01f29c7995
3 changed files with 57 additions and 47 deletions
+38 -35
View File
@@ -146,31 +146,31 @@ LuaDeclareType( PlayMode );
enum SortOrder enum SortOrder
{ {
// song sorts // song sorts
SORT_PREFERRED, SORT_PREFERRED, /**< Sort by the user's preferred settings. */
SORT_GROUP, SORT_GROUP, /**< Sort by the groups the Songs are in. */
SORT_TITLE, SORT_TITLE, /**< Sort by the Song's title. */
SORT_BPM, SORT_BPM, /**< Sort by the Song's BPM. */
SORT_POPULARITY, SORT_POPULARITY, /**< Sort by how popular the Song is. */
SORT_TOP_GRADES, SORT_TOP_GRADES, /**< Sort by the highest grades earned on a Song. */
SORT_ARTIST, SORT_ARTIST, /**< Sort by the name of the artist of the Song. */
SORT_GENRE, SORT_GENRE, /**< Sort by the Song's genre. */
SORT_BEGINNER_METER, SORT_BEGINNER_METER, /**< Sort by the difficulty of the single beginner meter. */
SORT_EASY_METER, SORT_EASY_METER, /**< Sort by the difficulty of the single easy meter. */
SORT_MEDIUM_METER, SORT_MEDIUM_METER, /**< Sort by the difficulty of the single medium meter. */
SORT_HARD_METER, SORT_HARD_METER, /**< Sort by the difficulty of the single hard meter. */
SORT_CHALLENGE_METER, SORT_CHALLENGE_METER, /**< Sort by the difficulty of the single challenge meter. */
SORT_DOUBLE_EASY_METER, SORT_DOUBLE_EASY_METER, /**< Sort by the difficulty of the double easy meter. */
SORT_DOUBLE_MEDIUM_METER, SORT_DOUBLE_MEDIUM_METER, /**< Sort by the difficulty of the double medium meter. */
SORT_DOUBLE_HARD_METER, SORT_DOUBLE_HARD_METER, /**< Sort by the difficulty of the double hard meter. */
SORT_DOUBLE_CHALLENGE_METER, SORT_DOUBLE_CHALLENGE_METER, /**< Sort by the difficulty of the double challenge meter. */
// //
SORT_MODE_MENU, SORT_MODE_MENU, /**< Have access to the menu for choosing the sort. */
// course sorts // course sorts
SORT_ALL_COURSES, SORT_ALL_COURSES, /**< Sort with all courses available. */
SORT_NONSTOP_COURSES, SORT_NONSTOP_COURSES, /**< View only the nonstop courses. */
SORT_ONI_COURSES, SORT_ONI_COURSES, /**< View only the oni/survival courses. */
SORT_ENDLESS_COURSES, SORT_ENDLESS_COURSES, /**< View only the endless courses. */
SORT_LENGTH, SORT_LENGTH, /**< Sort the courses by how long they would last. */
SORT_ROULETTE, SORT_ROULETTE,
SORT_RECENT, SORT_RECENT,
NUM_SortOrder, NUM_SortOrder,
@@ -409,6 +409,7 @@ enum StageResult
// Battle stuff // Battle stuff
/** @brief The number of inventory slots available for attacks. */
const int NUM_INVENTORY_SLOTS = 3; const int NUM_INVENTORY_SLOTS = 3;
enum AttackLevel enum AttackLevel
{ {
@@ -452,13 +453,13 @@ LuaDeclareType( Premium );
/** @brief The various stage awards that can be given based on excellent play. */ /** @brief The various stage awards that can be given based on excellent play. */
enum StageAward enum StageAward
{ {
StageAward_FullComboW3, StageAward_FullComboW3, /**< A full great combo (or equivalent) was earned. */
StageAward_SingleDigitW3, StageAward_SingleDigitW3, /**< A single digit great combo (or equivalent) was earned. */
StageAward_OneW3, StageAward_OneW3, /**< Only one great (or equivalent) was earned. */
StageAward_FullComboW2, StageAward_FullComboW2, /**< A full excellent combo (or equivalent) was earned. */
StageAward_SingleDigitW2, StageAward_SingleDigitW2, /**< A single digit excellent combo (or equivalent) was earned. */
StageAward_OneW2, StageAward_OneW2, /**< Only one excellent (or equivalent) was earned. */
StageAward_FullComboW1, StageAward_FullComboW1, /**< All fantastics (or equivalent) were earned. */
StageAward_80PercentW3, StageAward_80PercentW3,
StageAward_90PercentW3, StageAward_90PercentW3,
StageAward_100PercentW3, StageAward_100PercentW3,
@@ -623,9 +624,9 @@ const RString& StageToLocalizedString( Stage i );
/** @brief The different possibilities of earning an extra stage. */ /** @brief The different possibilities of earning an extra stage. */
enum EarnedExtraStage enum EarnedExtraStage
{ {
EarnedExtraStage_No, EarnedExtraStage_No, /**< No extra stage was earned. */
EarnedExtraStage_Extra1, EarnedExtraStage_Extra1, /**< The first extra stage was earned. */
EarnedExtraStage_Extra2, EarnedExtraStage_Extra2, /**< The second extra stage (or encore extra stage) was earned. */
NUM_EarnedExtraStage, NUM_EarnedExtraStage,
EarnedExtraStage_Invalid EarnedExtraStage_Invalid
}; };
@@ -671,8 +672,10 @@ LuaDeclareType( CourseType );
#endif #endif
/* /**
* (c) 2001-2004 Chris Danford, Chris Gomez * @file
* @author Chris Danford, Chris Gomez (c) 2001-2004
* @section LICENSE
* All rights reserved. * All rights reserved.
* *
* Permission is hereby granted, free of charge, to any person obtaining a * Permission is hereby granted, free of charge, to any person obtaining a
+14 -7
View File
@@ -1,5 +1,3 @@
/* LuaReference - a self-cleaning Lua reference. */
#ifndef LUA_REFERENCE_H #ifndef LUA_REFERENCE_H
#define LUA_REFERENCE_H #define LUA_REFERENCE_H
@@ -8,7 +6,7 @@
struct lua_State; struct lua_State;
typedef lua_State Lua; typedef lua_State Lua;
/** @brief A self-cleaning Lua reference. */
class LuaReference class LuaReference
{ {
public: public:
@@ -29,14 +27,21 @@ public:
* On success, return true. On error, set to nil and return false. */ * On success, return true. On error, set to nil and return false. */
bool SetFromExpression( const RString &sExpression ); bool SetFromExpression( const RString &sExpression );
/* Deep-copy tables, detaching this reference from any others. */ /** @brief Deep-copy tables, detaching this reference from any others. */
void DeepCopy(); void DeepCopy();
/* Push the referenced object onto the stack. If not set (or set to nil), push nil. */ /* Push the referenced object onto the stack. If not set (or set to nil), push nil. */
virtual void PushSelf( Lua *L ) const; virtual void PushSelf( Lua *L ) const;
/* Return true if set. (SetFromNil() counts as being set.) */ /**
* @brief Determine if the reference is set.
*
* SetFromNil() counts as being set.
* @return true if it's set. */
bool IsSet() const; bool IsSet() const;
/**
* @brief Determine if the reference is nil.
* @return true if it's nil. */
bool IsNil() const; bool IsNil() const;
void Unset() { Unregister(); } void Unset() { Unregister(); }
@@ -91,8 +96,10 @@ public:
#endif #endif
/* /**
* (c) 2005 Glenn Maynard, Chris Danford * @file
* @author Glenn Maynard, Chris Danford (c) 2005
* @section LICENSE
* All rights reserved. * All rights reserved.
* *
* Permission is hereby granted, free of charge, to any person obtaining a * Permission is hereby granted, free of charge, to any person obtaining a
+5 -5
View File
@@ -1,5 +1,3 @@
/* LightsDriver - Controls lights */
#ifndef LightsDriver_H #ifndef LightsDriver_H
#define LightsDriver_H #define LightsDriver_H
@@ -7,7 +5,7 @@
#include "arch/RageDriver.h" #include "arch/RageDriver.h"
struct LightsState; struct LightsState;
/** @brief Controls the lights. */
class LightsDriver: public RageDriver class LightsDriver: public RageDriver
{ {
public: public:
@@ -26,8 +24,10 @@ public:
#endif #endif
/* /**
* (c) 2003-2004 Chris Danford * @file
* @author Chris Danford (c) 2003-2004
* @section LICENSE
* All rights reserved. * All rights reserved.
* *
* Permission is hereby granted, free of charge, to any person obtaining a * Permission is hereby granted, free of charge, to any person obtaining a