2006-09-16 23:07:38 +02:00
|
|
|
/* $Id$ */
|
2006-03-31 10:59:19 +02:00
|
|
|
|
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 */
|