2006-09-16 21:07:38 +00:00
|
|
|
/* $Id$ */
|
2006-03-31 08:59:19 +00:00
|
|
|
|
2009-08-21 20:21:05 +00:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
|
|
|
|
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2008-05-06 15:11:33 +00:00
|
|
|
/** @file unmovable.h Functions related to unmovable objects. */
|
2007-04-04 04:08:47 +00:00
|
|
|
|
2006-03-31 08:59:19 +00:00
|
|
|
#ifndef UNMOVABLE_H
|
|
|
|
#define UNMOVABLE_H
|
|
|
|
|
2009-02-05 03:41:42 +00:00
|
|
|
#include "economy_func.h"
|
2010-01-15 16:41:15 +00:00
|
|
|
#include "strings_type.h"
|
2009-02-05 03:41:42 +00:00
|
|
|
|
2008-09-30 20:39:50 +00:00
|
|
|
void UpdateCompanyHQ(Company *c, uint score);
|
2006-03-31 08:59:19 +00:00
|
|
|
|
2009-02-05 03:41:42 +00:00
|
|
|
struct UnmovableSpec {
|
|
|
|
StringID name;
|
|
|
|
uint8 buy_cost_multiplier;
|
|
|
|
uint8 sell_cost_multiplier;
|
|
|
|
|
2009-11-24 22:15:42 +00:00
|
|
|
Money GetRemovalCost() const { return (_price[PR_CLEAR_UNMOVABLE] * this->sell_cost_multiplier); }
|
|
|
|
Money GetBuildingCost() const { return (_price[PR_BUILD_UNMOVABLE] * this->buy_cost_multiplier); }
|
2009-02-05 03:41:42 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-09-28 18:42:35 +00:00
|
|
|
#endif /* UNMOVABLE_H */
|