-------------------------------------------- TEXT COLOR --------------------------------------------------
| 112 | } |
| 113 | //-------------------------------------------- TEXT COLOR -------------------------------------------------- |
| 114 | char PlayerInterface::getTextColor() const |
| 115 | { |
| 116 | switch ( this->getColor() ) |
| 117 | { |
| 118 | case Colors::Red: |
| 119 | return Text::BrightRed; |
| 120 | case Colors::Blue: |
| 121 | return Text::Blue; |
| 122 | case Colors::Teal: |
| 123 | return Text::Teal; |
| 124 | case Colors::Purple: |
| 125 | return Text::Purple; |
| 126 | case Colors::Orange: |
| 127 | return Text::Orange; |
| 128 | case Colors::Brown: |
| 129 | return Text::Brown; |
| 130 | case Colors::White: |
| 131 | return Text::PlayerWhite; |
| 132 | case Colors::Yellow: |
| 133 | return Text::PlayerYellow; |
| 134 | case Colors::Green: |
| 135 | return Text::DarkGreen; |
| 136 | case 136: // p10 |
| 137 | return Text::LightYellow; |
| 138 | case 134: // p11 |
| 139 | return Text::Tan; |
| 140 | case 51: // p12 |
| 141 | return Text::GreyBlue; |
| 142 | default: |
| 143 | return Text::Default; |
| 144 | } |
| 145 | } |
| 146 | //-------------------------------------- UNIT TYPE REQUIREMENT --------------------------------------------- |
| 147 | bool PlayerInterface::hasUnitTypeRequirement(UnitType unit, int amount) const |
| 148 | { |