22 lines
480 B
Java
22 lines
480 B
Java
package it.polimi.ingsw.gc14.View;
|
|
|
|
import it.polimi.ingsw.gc14.Network.TCP.NetworkEvent;
|
|
|
|
public interface IView {
|
|
// --- Setup ---
|
|
void showWelcome();
|
|
String askPlayerName();
|
|
|
|
// --- Rendering ---
|
|
void render(GameState state);
|
|
void showMessage(String message);
|
|
void showError(String message);
|
|
void showWinner(String winner);
|
|
|
|
// --- Input giocatore ---
|
|
NetworkEvent askMove(GameState state);
|
|
|
|
// --- Lifecycle ---
|
|
void close();
|
|
}
|