Class CellClient

java.lang.Object
it.polimi.ingsw.serializable.CellClient
All Implemented Interfaces:
java.io.Serializable

public class CellClient
extends java.lang.Object
implements java.io.Serializable
Allows to represent the Cell object client-side.
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • updateBuildingCell

      public void updateBuildingCell​(CellClient cellFromServer)
      Updates the clientCell of the view after receiving the cell from the server.
      Parameters:
      cellFromServer - cell received from the server.
    • removeWorker

      public void removeWorker()
      Removes worker from cell.
    • addWorker

      public void addWorker​(WorkerClient worker)
      Updates worker in cell.
      Parameters:
      worker - local workerClient instance.
    • getY

      public int getY()
    • getX

      public int getX()
    • getWorkerClient

      public WorkerClient getWorkerClient()
    • hasWorker

      public boolean hasWorker()
    • hasDome

      public boolean hasDome()
    • getCellLevel

      public int getCellLevel()