From f2edc728e6c8d8b74226058ab5842ef60bf34592 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 2 Aug 2010 20:57:32 +0000 Subject: (svn r20321) -Codechange: rename GetUnmovableSpec to UnmovableSpec::Get and add+use a ::GetByTile --- src/unmovable.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/unmovable.h') diff --git a/src/unmovable.h b/src/unmovable.h index dae1c269b..2838d1879 100644 --- a/src/unmovable.h +++ b/src/unmovable.h @@ -34,6 +34,20 @@ struct UnmovableSpec { * @return The cost for clearing. */ Money GetClearCost() const { return (_price[PR_CLEAR_UNMOVABLE] * this->clear_cost_multiplier); } + + /** + * Get the specification associated with a specific UnmovableType. + * @param index The unmovable type to fetch. + * @return The specification. + */ + static const UnmovableSpec *Get(int index); + + /** + * Get the specification associated with a tile. + * @param tile The tile to fetch the data for. + * @return The specification. + */ + static const UnmovableSpec *GetByTile(TileIndex tile); }; -- cgit v1.2.3-54-g00ecf