unmovable.h

Go to the documentation of this file.
00001 /* $Id: unmovable.h 15392 2009-02-07 02:38:32Z belugas $ */
00002 
00005 #ifndef UNMOVABLE_H
00006 #define UNMOVABLE_H
00007 
00008 #include "unmovable_map.h"
00009 #include "economy_type.h"
00010 #include "economy_func.h"
00011 
00012 void UpdateCompanyHQ(Company *c, uint score);
00013 
00014 struct UnmovableSpec {
00015   StringID name;
00016   uint8 buy_cost_multiplier;
00017   uint8 sell_cost_multiplier;
00018 
00019   Money GetRemovalCost() const { return (_price.clear_roughland * this->sell_cost_multiplier); }
00020   Money GetBuildingCost() const { return (_price.clear_roughland * this->buy_cost_multiplier); }
00021 
00022 };
00023 
00024 
00025 #endif /* UNMOVABLE_H */

Generated on Thu Sep 24 19:35:07 2009 for OpenTTD by  doxygen 1.5.6