void CStackQueue::StackBox::showAll(SDL_Surface * to) { assert(stack); bg->colorize(stack->owner); CIntObject::showAll(to); if(small) printAtMiddleLoc(makeNumberShort(stack->count), pos.w/2, pos.h - 7, FONT_SMALL, Colors::WHITE, to); else printAtMiddleLoc(makeNumberShort(stack->count), pos.w/2, pos.h - 8, FONT_MEDIUM, Colors::WHITE, to); }
void CIntObject::printAtMiddleLoc( const std::string & text, int x, int y, EFonts font, SDL_Color kolor/*=Colors::WHITE*/, SDL_Surface * dst/*=screen*/ ) { printAtMiddleLoc(text, Point(x,y), font, kolor, dst); }
void CIntObject::printAtMiddleLoc(const std::string & text, const Point &p, EFonts font, SDL_Color kolor, SDL_Surface * dst) { printAtMiddleLoc(text, p.x, p.y, font, kolor, dst); }