diff options
author | alberth <alberth@openttd.org> | 2010-08-02 20:32:39 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-08-02 20:32:39 +0000 |
commit | 5556955960c32780170b99259835502c052852fa (patch) | |
tree | 45508225435f689fbc584a952dfd912e47acefd4 /src/company_cmd.cpp | |
parent | 73f45d16d1a5c6174a25ee4a03f4460ee74ab91e (diff) | |
download | openttd-5556955960c32780170b99259835502c052852fa.tar.xz |
(svn r20318) -Doc: Doxygen additions.
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r-- | src/company_cmd.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp index 25f5959b1..9df78ebe7 100644 --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -47,6 +47,11 @@ uint _cur_company_tick_index; ///< used to generate a name for one c CompanyPool _company_pool("Company"); ///< Pool of companies. INSTANTIATE_POOL_METHODS(Company) +/** + * Constructor. + * @param name_1 Name of the company. + * @param is_ai A computer program is running for this company. + */ Company::Company(uint16 name_1, bool is_ai) { this->name_1 = name_1; @@ -56,6 +61,7 @@ Company::Company(uint16 name_1, bool is_ai) InvalidateWindowData(WC_PERFORMANCE_DETAIL, 0, INVALID_COMPANY); } +/** Destructor. */ Company::~Company() { free(this->num_engines); |