Added End Turn button so we can do multiple actions per round - this will be limited by energy shortly

This commit is contained in:
2011-07-03 17:45:11 -04:00
parent c5d6167e8c
commit cfe5666c04
4 changed files with 12 additions and 6 deletions

View File

@ -105,7 +105,6 @@ void GameData::handle_click(int x, int y)
{
current->x = x;
current->y = y;
toggle_turn();
}
break;
}
@ -162,7 +161,7 @@ bool GameData::add_vertex(int x, int y, int z, int r, int colour)
if (Graph::add_vertex(v, current))
{
toggle_turn();
mode = MODE_SELECT;
return true;
}
@ -225,7 +224,7 @@ void GameData::attack_vertex(GameVertex* target)
fprintf(stderr, "debug: GameData::attack_vertex(): atk=%.2f, armor=%.2f, damage=%d\n", atk, armor, damage);
#endif
toggle_turn();
mode = MODE_SELECT;
}