MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / getText

Method getText

game/state/battle/battle.cpp:3726–3749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3724}
3725
3726UString BattleScore::getText()
3727{
3728 auto total = getTotal();
3729 if (total > 500)
3730 {
3731 return tr("Very Good");
3732 }
3733 else if (total > 200)
3734 {
3735 return tr("Good");
3736 }
3737 else if (total > 0)
3738 {
3739 return tr("OK");
3740 }
3741 else if (total > -200)
3742 {
3743 return tr("Poor");
3744 }
3745 else
3746 {
3747 return tr("Very Poor");
3748 }
3749}
3750
3751} // namespace OpenApoc

Callers 10

FormPreviewMethod · 0.45
updateImageMethod · 0.45
getLocationTextMethod · 0.45
AEquipScreenMethod · 0.45
beginEditingMethod · 0.45
eventOccurredMethod · 0.45
displayMethod · 0.45
beginMethod · 0.45
VEquipScreenMethod · 0.45
BattleDebriefingMethod · 0.45

Calls 1

trFunction · 0.85

Tested by

no test coverage detected