| 269 | } |
| 270 | |
| 271 | LPCSTR CPda::Name() |
| 272 | { |
| 273 | if (!m_SpecificChracterOwner.size()) |
| 274 | return inherited::Name(); |
| 275 | |
| 276 | if (m_sFullName.empty()) |
| 277 | { |
| 278 | m_sFullName.assign(inherited::Name()); |
| 279 | |
| 280 | CSpecificCharacter spec_char; |
| 281 | spec_char.Load(m_SpecificChracterOwner); |
| 282 | m_sFullName += " "; |
| 283 | m_sFullName += xr_string(spec_char.Name()); |
| 284 | } |
| 285 | |
| 286 | return m_sFullName.c_str(); |
| 287 | } |
| 288 | |
| 289 | CPda* CPda::GetPdaFromOwner(CObject* owner) { return smart_cast<CInventoryOwner*>(owner)->GetPDA(); } |
| 290 |
no test coverage detected