Package it.polimi.ingsw.serializable
Class WorkerClient
java.lang.Object
it.polimi.ingsw.serializable.WorkerClient
- All Implemented Interfaces:
java.io.Serializable
public class WorkerClient
extends java.lang.Object
implements java.io.Serializable
The worker representation client side.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description WorkerClient(WorkerClient workerFromServer)WorkerClient(Worker worker) -
Method Summary
Modifier and Type Method Description java.lang.StringgetWorkerColor()java.lang.StringgetWorkerSex()intgetXPosition()intgetYPosition()voidupdateWorkerPosition(WorkerClient workerFromServer)Updates the position of the local representation of the worker.
-
Constructor Details
-
Method Details
-
getWorkerSex
public java.lang.String getWorkerSex() -
getWorkerColor
public java.lang.String getWorkerColor() -
getXPosition
public int getXPosition() -
getYPosition
public int getYPosition() -
updateWorkerPosition
Updates the position of the local representation of the worker.- Parameters:
workerFromServer- Worker received from the server.
-