Class ModelUpdateEvent

java.lang.Object
it.polimi.ingsw.Server.Messages.Events.Internal.ModelUpdateEvent
All Implemented Interfaces:
ClientEvent

public class ModelUpdateEvent extends Object implements ClientEvent
This Event is generated by ModelWrapper upon usage of ModelWrapper.editModel(ModelWrapper.ModelModifier, boolean). This event contains a copy of the updated model, and is distributed to all players in a lobby
  • Field Details

    • update

      private final Model update
  • Constructor Details

    • ModelUpdateEvent

      public ModelUpdateEvent(Model update)
      Ship an updated model as an event
      Parameters:
      update - reference to the updated model
  • Method Details

    • getModel

      public Model getModel()
      Get the Model object
      Returns:
      a reference to the stored Model