Files @ r11248:2c32f6c048c3
Branch filter:

Location: cpp/openttd-patchpack/source/src/unmovable.h

translators
(svn r15602) -Update: WebTranslator2 update to 2009-03-03 18:40:15
brazilian_portuguese - 1 fixed by tucalipe (1)
dutch - 1 fixed by habell (1)
german - 1 fixed, 12 changed by planetmaker (13)
hungarian - 1 fixed by alyr (1)
indonesian - 1 fixed by fanioz (1)
persian - 102 fixed by ali sattari (102)
spanish - 1 fixed by eusebio (1)
/* $Id$ */

/** @file unmovable.h Functions related to unmovable objects. */

#ifndef UNMOVABLE_H
#define UNMOVABLE_H

#include "unmovable_map.h"
#include "economy_type.h"
#include "economy_func.h"

void UpdateCompanyHQ(Company *c, uint score);

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); }

};


#endif /* UNMOVABLE_H */