* Retrieve the GRF ID of the NewGRF the engine is tied to. * This is the GRF providing the Action 3. * @return GRF ID of the associated NewGRF. */
| 154 | * @return GRF ID of the associated NewGRF. |
| 155 | */ |
| 156 | uint32_t Engine::GetGRFID() const |
| 157 | { |
| 158 | const GRFFile *file = this->GetGRF(); |
| 159 | return file == nullptr ? 0 : file->grfid; |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * Determines whether an engine can carry something. |
no test coverage detected