* Returns the treetype of a tile. * * This function returns the treetype of a given tile. As there are more * possible treetypes for a tile in a game as the enumeration #TreeType defines * this function may be return a value which isn't catch by an entry of the * enumeration #TreeType. But there is no problem known about it. * * @param t The tile to get the treetype from * @return The tree
| 85 | * @pre Tile t must be of type MP_TREES |
| 86 | */ |
| 87 | inline TreeType GetTreeType(Tile t) |
| 88 | { |
| 89 | assert(IsTileType(t, MP_TREES)); |
| 90 | return (TreeType)t.m3(); |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * Returns the groundtype for tree tiles. |
no test coverage detected