MCPcopy Create free account
hub / github.com/bwapi/bwapi / getTextColor

Method getTextColor

bwapi/BWAPILIB/Source/Player.cpp:114–145  ·  view source on GitHub ↗

-------------------------------------------- TEXT COLOR --------------------------------------------------

Source from the content-addressed store, hash-verified

112}
113//-------------------------------------------- TEXT COLOR --------------------------------------------------
114char 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 ---------------------------------------------
147bool PlayerInterface::hasUnitTypeRequirement(UnitType unit, int amount) const
148{

Callers 1

vSendTextExMethod · 0.80

Calls 1

getColorMethod · 0.80

Tested by

no test coverage detected