void CvOutcomeMission::buildDisplayString(CvWStringBuffer &szBuffer, CvUnit *pUnit) { if ((m_iCost != 0) || !m_PropertyCost.isEmpty()) { szBuffer.append(NEWLINE); szBuffer.append(L"Cost: "); if (m_iCost != 0) { CvWString szTempBuffer; szTempBuffer.Format(L"%d%c", m_iCost, GC.getCommerceInfo(COMMERCE_GOLD).getChar()); szBuffer.append(szTempBuffer); } m_PropertyCost.buildCompactChangesString(szBuffer); } if (m_bKill) { szBuffer.append(NEWLINE); szBuffer.append(gDLL->getText("TXT_KEY_ACTION_CONSUME_UNIT")); } m_OutcomeList.buildDisplayString(szBuffer, *pUnit); }
void CvPropertyPropagatorDiffuse::buildDisplayString(CvWStringBuffer &szBuffer) const { CvWString szTemp; szTemp.Format(L"%d%% %c diffusion / Turn", m_iPercent, GC.getPropertyInfo(getProperty()).getChar()); szBuffer.append(szTemp); }
void CvPropertyPropagatorGather::buildDisplayString(CvWStringBuffer &szBuffer) const { CvWString szTemp; szTemp.Format(L"Gathers %d %c / Turn", m_iAmountPerTurn, GC.getPropertyInfo(getProperty()).getChar()); szBuffer.append(szTemp); }