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

Method setTextSize

bwapi/BWAPI/Source/BWAPI/GameDrawing.cpp:140–148  ·  view source on GitHub ↗

-------------------------------------------------- DRAW TEXT ---------------------------------------------

Source from the content-addressed store, hash-verified

138 }
139 //-------------------------------------------------- DRAW TEXT ---------------------------------------------
140 void GameImpl::setTextSize(Text::Size::Enum size)
141 {
142 // Clamp to valid sizes
143 size = Util::clamp(size, Text::Size::Small, Text::Size::Huge);
144
145 if ( !this->tournamentCheck(Tournament::SetTextSize, &size) )
146 return;
147 this->textSize = size;
148 }
149 void GameImpl::vDrawText(CoordinateType::Enum ctype, int x, int y, const char *format, va_list arg)
150 {
151 if ( !data->hasGUI ) return;

Callers 1

initializeDataMethod · 0.95

Calls 2

tournamentCheckMethod · 0.95
clampFunction · 0.85

Tested by

no test coverage detected