void Projectile::paint() { // Draw the projectile OpenGLRenderer::getInstance()->setForegroundColor(OpenGLColorBlue()); OpenGLRenderer::getInstance()->setPointSize(3.0f); OpenGLRenderer::getInstance()->drawPoint(getX(), getY()); OpenGLRenderer::getInstance()->setPointSize(1.0f); }
void PathFinder::paint() { //Paint the open list path scoring for(int i = 0; i < m_PathNodeOpen.size(); i++) { m_PathNodeOpen.at(i)->paintScore(OpenGLColorRed()); } //Paint the closed list path scoring for(int i = 0; i < m_PathNodeClosed.size(); i++) { m_PathNodeClosed.at(i)->paintScore(OpenGLColorBlue()); } //Paint the final path scoring for(int i = 0; i < m_PathNodeFinal.size(); i++) { m_PathNodeFinal.at(i)->paintScore(OpenGLColorYellow()); } }
void PathFinder::paint() { //Paint the tile scoring for all the path nodes in the closed list. for(int i = 0; i < m_ClosedList.size(); i++) { m_ClosedList.at(i)->paintScoring(OpenGLColorBlue()); } //Paint the tile scoring for all the path nodes in the closed list. for(int i = 0; i < m_OpenList.size(); i++) { m_OpenList.at(i)->paintScoring(OpenGLColorRed()); } //Paint the tile scoring for all the path nodes in the closed list. for(int i = 0; i < m_FinalPath.size(); i++) { m_FinalPath.at(i)->paintScoring(OpenGLColorYellow()); } }