BWAPI 4.2.0 An API for interacting with Starcraft: Broodwar (1.16.1) |
Namespaces | |
Size |
Enumerations | |
enum | Enum { Previous = 1, Default = 2, Yellow = 3, White = 4, Grey = 5, Red = 6, Green = 7, BrightRed = 8, Invisible = 11, Blue = 14, Teal = 15, Purple = 16, Orange = 17, Align_Right = 18, Align_Center = 19, Invisible2 = 20, Brown = 21, PlayerWhite = 22, PlayerYellow = 23, DarkGreen = 24, LightYellow = 25, Cyan = 26, Tan = 27, GreyBlue = 28, GreyGreen = 29, GreyCyan = 30, Turquoise = 31 } |
Functions | |
bool | isColor (Text::Enum c) |
std::ostream & | operator<< (std::ostream &out, const Text::Enum &t) |
Namespace containing text formatting codes.
Such codes are used in calls to Game::drawText, Game::printf, and Broodwar::operator<<
Enumeration of text formatting codes
Checks if the given character is a color-changing control code.
c
is a regular color, not Text::Previous, Text::Invisible* or Text::Align* References isColor().
Referenced by isColor().
Standard output stream operator for text formatting codes.
This is used to correctly format the codes for output.
out | Reference to destination output stream. |
t | Reference to the Text formatting code to insert into the output stream. |
out
parameter that was passed in.