* Check whether the object on a tile is of a specific type. * @param t Tile to test. * @param type Type to test. * @pre IsTileType(t, MP_OBJECT) * @return True if type matches. */
| 23 | * @return True if type matches. |
| 24 | */ |
| 25 | inline bool IsObjectType(Tile t, ObjectType type) |
| 26 | { |
| 27 | return GetObjectType(t) == type; |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * Check whether a tile is a object tile of a specific type. |
no test coverage detected