@@ -550,6 +550,7 @@ void drawTexturedRectangle(std::pair<float, float> texTopLeft, float sideLength,
550550void DrawingGameVisitor::visit (GameDice& dice) {
551551
552552 static const GLuint diceTextures = loadImageAsTexture (" resources/catan_dice_new.bmp" );
553+ static const GLuint gameTextures = loadImageAsTexture (" resources/catan_sprite_sheet_thatnewnew.bmp" );
553554 glBindTexture (GL_TEXTURE_2D, diceTextures);
554555
555556 glColor3d (1.0 , 1.0 , 1.0 );
@@ -571,6 +572,8 @@ void DrawingGameVisitor::visit(GameDice& dice) {
571572
572573
573574 glBindTexture (GL_TEXTURE_2D, 0 );
575+
576+
574577
575578}
576579
@@ -633,7 +636,15 @@ void DrawingGameVisitor::visit(ResourceTile& tile) {
633636 glEnd ();
634637
635638 if (tile.getDiceValue () != 0 ) {
636- drawTexturedCircle (numberTexPoints.find (tile.getDiceValue ())->second , radius, coordToScreen (coord), 0.04 );
639+ if (tile.getBoard ().getRobber () == coord) { // draw the robber on this tile
640+ // static const GLuint robberTextures = loadImageAsTexture("resource/catan_sprite_sheet_thatnewnew.bmp");
641+
642+ // glBindTexture(GL_TEXTURE_2D, robberTextures);
643+ // glColor3d(1.0, 1.0, 1.0);
644+ drawTexturedCircle (make_pair (1240 .f , 643 .f ), 59 .5f , coordToScreen (coord), 0.04 );
645+ }
646+ else
647+ drawTexturedCircle (numberTexPoints.find (tile.getDiceValue ())->second , radius, coordToScreen (coord), 0.04 );
637648 }
638649 glBindTexture (GL_TEXTURE_2D, 0 );
639650
0 commit comments