added resource restructuring
This commit is contained in:
@@ -17,9 +17,9 @@ public DetermineStartPlayer(ServerState parent, ServerGameLogic logic) {
|
||||
|
||||
@Override
|
||||
public void receivedRequestDice(RequestDice msg, int from) {
|
||||
logic.send();
|
||||
// logic.send();
|
||||
|
||||
broadcastUpdate(new Dice());
|
||||
// broadcastUpdate(new Dice());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -26,7 +26,7 @@ public Lobby(ServerState parent, ServerGameLogic logic) {
|
||||
*/
|
||||
@Override
|
||||
public void receivedDeselectTSK(DeselectTSK msg, int from) {
|
||||
broadcastUpdate(new UpdateTSK());
|
||||
// broadcastUpdate(new UpdateTSK());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -36,7 +36,7 @@ public void receivedDeselectTSK(DeselectTSK msg, int from) {
|
||||
*/
|
||||
@Override
|
||||
public void receivedNotReady(LobbyNotReady msg, int from) {
|
||||
broadcastUpdate(new UpdateReady());
|
||||
// broadcastUpdate(new UpdateReady());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -46,7 +46,7 @@ public void receivedNotReady(LobbyNotReady msg, int from) {
|
||||
*/
|
||||
@Override
|
||||
public void receivedReady(LobbyReady msg, int from) {
|
||||
broadcastUpdate(new UpdateReady());
|
||||
// broadcastUpdate(new UpdateReady());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -56,7 +56,7 @@ public void receivedReady(LobbyReady msg, int from) {
|
||||
*/
|
||||
@Override
|
||||
public void receivedSelectTSK(SelectTSK msg, int from) {
|
||||
broadcastUpdate(new UpdateTSK());
|
||||
// broadcastUpdate(new UpdateTSK());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -29,7 +29,7 @@ public void exit() {
|
||||
this.getParent().getParent().exit();
|
||||
} else {
|
||||
// todo: next player
|
||||
broadcastUpdate(new ActivePlayer());
|
||||
// broadcastUpdate(new ActivePlayer());
|
||||
parent.gotoState(new Animation(parent, logic));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user