@Override
protected PanelStartGameDialog getNext() {
PanelStartGameDialog next = null;
switch (selection) {
case CREATE:
Threads.execute(new MyRunnable() {
@Override
public void run() {
MyCampaignFactory.startNewCampaign();
}
@Override
public String getTaskName() {
return "Create game";
}
});
next = new PanelLoading(getDialog(), this);
break;
case LOAD:
next = new PanelLoadGame(getDialog(), this);
break;
case JOIN:
Threads.execute(new MyRunnable() {
@Override
public void run() {
MyCampaignFactory.joinCampaign();
}