* Returns the name of the contents of the transfer. * @param lang Language to get strings from. * @return Name string. */
| 201 | * @return Name string. |
| 202 | */ |
| 203 | std::wstring Transfer::getName(Language *lang) const |
| 204 | { |
| 205 | if (_soldier != 0) |
| 206 | { |
| 207 | return _soldier->getName(); |
| 208 | } |
| 209 | else if (_craft != 0) |
| 210 | { |
| 211 | return _craft->getName(lang); |
| 212 | } |
| 213 | else if (_scientists != 0) |
| 214 | { |
| 215 | return lang->getString("STR_SCIENTISTS"); |
| 216 | } |
| 217 | else if (_engineers != 0) |
| 218 | { |
| 219 | return lang->getString("STR_ENGINEERS"); |
| 220 | } |
| 221 | return lang->getString(_itemId); |
| 222 | } |
| 223 | |
| 224 | /** |
| 225 | * Returns the time remaining until the |