Merge branch 'main' of https://github.com/rubenpirreram/ing-sw-2026-pirrera-radice-pagani-pellegrino
This commit is contained in:
@@ -19,6 +19,9 @@ public class Hunt extends EventCard {
|
||||
/** Prestige Points multiplier used during the event. */
|
||||
private final int prestigeMultiplier;
|
||||
|
||||
/**Gets Prestige Points multiplier used during the event.
|
||||
* @return int {@code PrestigeMultiplier}
|
||||
*/
|
||||
int getPrestigeMultiplier() { return prestigeMultiplier; }
|
||||
|
||||
/**
|
||||
|
||||
@@ -31,6 +31,9 @@ public class RMIClient implements IClient {
|
||||
|
||||
/** Scheduler that fires ping() every {@value NetworkConfig#KEEPALIVE_INTERVAL_MS} ms. */
|
||||
private ScheduledExecutorService pingSender;
|
||||
/**
|
||||
* Future executor used for timer Running
|
||||
*/
|
||||
private ExecutorService executor;
|
||||
|
||||
/**
|
||||
|
||||
@@ -163,6 +163,10 @@ public class TCPClient implements IClient {
|
||||
sender.shutdownNow();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Disconnects the player and cleans model and controller
|
||||
*/
|
||||
private synchronized void disconnect() {
|
||||
if (!running) return;
|
||||
running = false;
|
||||
|
||||
Reference in New Issue
Block a user