/* changeTextOnly - Once text is added, if we want to subsequently change it, we may use this method. */ void GameText::changeTextOnly(wstring *textToSet, int index) { TextToDraw *textToChange = textToDraw->at(index); wstring *oldText = textToChange->getText(); delete oldText; textToChange->setText(textToSet); }
void GameText::addStatsText(wstring *textToAdd, int initX, int initY, int initWidth, int initHeight){ TextToDraw *text = new TextToDraw(); text->setText(textToAdd); text->x = initX; text->y = initY; text->width = initWidth; text->height = initHeight; statsTextToDraw->push_back(text); }