Package it.polimi.ingsw.network.client
Interface VirtualModel
- All Known Implementing Classes:
LocalVirtualModel,NetworkVirtualModel
public interface VirtualModel
Interface that hides client side if the game is running in local or network
-
Method Summary
Modifier and Type Method Description voidhandleAction(Action action)Forward action to servevoidhandleMessage(Message message)Forward message to servervoidstop()Stops action and message forwarding
-
Method Details
-
handleAction
Forward action to serve- Parameters:
action- , action to forward
-
handleMessage
Forward message to server- Parameters:
message- , message to forward
-
stop
void stop()Stops action and message forwarding
-