2006-09-16 23:07:38 +02:00
|
|
|
/* $Id$ */
|
2006-03-31 10:59:19 +02:00
|
|
|
|
2009-08-21 22:21:05 +02: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 17:11:33 +02:00
|
|
|
/** @file unmovable.h Functions related to unmovable objects. */
|
2007-04-04 06:08:47 +02:00
|
|
|
|
2006-03-31 10:59:19 +02:00
|
|
|
#ifndef UNMOVABLE_H
|
|
|
|
#define UNMOVABLE_H
|
|
|
|
|
2009-02-05 04:41:42 +01:00
|
|
|
#include "unmovable_map.h"
|
|
|
|
#include "economy_type.h"
|
|
|
|
#include "economy_func.h"
|
|
|
|
|
2008-09-30 22:39:50 +02:00
|
|
|
void UpdateCompanyHQ(Company *c, uint score);
|
2006-03-31 10:59:19 +02:00
|
|
|
|
2009-02-05 04:41:42 +01:00
|
|
|
struct UnmovableSpec {
|
|
|
|
StringID name;
|
|
|
|
uint8 buy_cost_multiplier;
|
|
|
|
uint8 sell_cost_multiplier;
|
|
|
|
|
|
|
|
Money GetRemovalCost() const { return (_price.clear_roughland * this->sell_cost_multiplier); }
|
|
|
|
Money GetBuildingCost() const { return (_price.clear_roughland * this->buy_cost_multiplier); }
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-09-28 20:42:35 +02:00
|
|
|
#endif /* UNMOVABLE_H */
|