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
    void handleAction​(Action action)
    Forward action to serve
    void handleMessage​(Message message)
    Forward message to server
    void stop()
    Stops action and message forwarding
  • Method Details

    • handleAction

      void handleAction​(Action action)
      Forward action to serve
      Parameters:
      action - , action to forward
    • handleMessage

      void handleMessage​(Message message)
      Forward message to server
      Parameters:
      message - , message to forward
    • stop

      void stop()
      Stops action and message forwarding