2006-09-16 21:07:38 +00:00
|
|
|
/* $Id$ */
|
2006-03-31 08:59:19 +00:00
|
|
|
|
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 "unmovable_map.h"
|
|
|
|
#include "economy_type.h"
|
|
|
|
#include "economy_func.h"
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
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 18:42:35 +00:00
|
|
|
#endif /* UNMOVABLE_H */
|