diff options
author | belugas <belugas@openttd.org> | 2007-02-23 18:55:07 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-02-23 18:55:07 +0000 |
commit | 0f090a0c1de3c01087f18debaac028b156d46815 (patch) | |
tree | 28b541cce9a8abd90d47b1524d635b9a38e37e51 /src/economy.h | |
parent | 9fa035f4676a0f2d185f235164af6dfbe0dd038e (diff) | |
download | openttd-0f090a0c1de3c01087f18debaac028b156d46815.tar.xz |
(svn r8862) -Cleanup: doxygen changes, again. Mostly @files missing tags and a few comments style.
Some documentation addition, when i can easily supply them
Diffstat (limited to 'src/economy.h')
-rw-r--r-- | src/economy.h | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/src/economy.h b/src/economy.h index 7737eefd9..2e189a237 100644 --- a/src/economy.h +++ b/src/economy.h @@ -1,5 +1,7 @@ /* $Id$ */ +/** @file economy.h */ + #ifndef ECONOMY_H #define ECONOMY_H @@ -7,15 +9,12 @@ void ResetPriceBaseMultipliers(void); void SetPriceBaseMultiplier(uint price, byte factor); typedef struct { - // Maximum possible loan - int32 max_loan; - int32 max_loan_unround; - // Economy fluctuation status + int32 max_loan; ///< Maximum possible loan + int32 max_loan_unround; ///< Economy fluctuation status int fluct; - // Interest - byte interest_rate; - byte infl_amount; - byte infl_amount_pr; + byte interest_rate; ///< Interest + byte infl_amount; ///< inflation amount + byte infl_amount_pr; ///< "floating" portion of inflation } Economy; VARDEF Economy _economy; @@ -40,19 +39,19 @@ enum ScoreID { SCORE_CARGO = 6, SCORE_MONEY = 7, SCORE_LOAN = 8, - SCORE_TOTAL = 9, // This must always be the last entry - SCORE_END = 10, // How many scores are there.. + SCORE_TOTAL = 9, ///< This must always be the last entry + SCORE_END = 10, ///< How many scores are there.. - SCORE_MAX = 1000 // The max score that can be in the performance history - // the scores together of score_info is allowed to be more! + SCORE_MAX = 1000 ///< The max score that can be in the performance history + /* the scores together of score_info is allowed to be more! */ }; DECLARE_POSTFIX_INCREMENT(ScoreID); typedef struct ScoreInfo { - byte id; // Unique ID of the score - int needed; // How much you need to get the perfect score - int score; // How much score it will give + byte id; ///< Unique ID of the score + int needed; ///< How much you need to get the perfect score + int score; ///< How much score it will give } ScoreInfo; extern const ScoreInfo _score_info[]; |