* Open the command dialog to get the players commands
* @param gc the galactic controller
*/
private void showOrdersDialog(GalacticController gc) {
GalacticPlayer currentPlayer = (GalacticPlayer)gc.getCurrentPlayer();
OrdersDialog ordersDialog =
new OrdersDialog(null, currentPlayer, gc.getNumberOfYearsRemaining());
Point p = getParent().getLocationOnScreen();
// offset the dlg so the Galaxy grid is visible as a reference
ordersDialog.setLocation((int)(p.getX()+0.7*getParent().getWidth()), (int)(p.getY()+getParent().getHeight()/3.0));
boolean canceled = ordersDialog.showDialog();
if ( !canceled ) { // newGame a game with the newly defined options
currentPlayer.setOrders( ordersDialog.getOrders() );
gc.advanceToNextPlayer();
}
}