* Returns the tree growth stage. * * This function returns the tree growth stage of a tile with trees. * * @param t The tile to get the tree growth stage * @return The tree growth stage * @pre Tile must be of type MP_TREES */
| 193 | * @pre Tile must be of type MP_TREES |
| 194 | */ |
| 195 | inline TreeGrowthStage GetTreeGrowth(Tile t) |
| 196 | { |
| 197 | assert(IsTileType(t, MP_TREES)); |
| 198 | return static_cast<TreeGrowthStage>(GB(t.m5(), 0, 3)); |
| 199 | } |
| 200 | |
| 201 | /** |
| 202 | * Add a value to the tree growth stage. |
no test coverage detected