Package it.polimi.ingsw.view.model
Class Swap
- java.lang.Object
-
- it.polimi.ingsw.view.model.Swap
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayList<String>getRawData()Convert data to a list of string that contains a user readable information about the classList<Integer>getX1()Get First Element start position to moveList<Integer>getX2()Get First Element end position to moveList<Integer>getY1()Get Second Element start position to moveList<Integer>getY2()Get Second Element end position to move
-
-
-
Method Detail
-
getRawData
public ArrayList<String> getRawData()
Description copied from interface:RawObjConvert data to a list of string that contains a user readable information about the class- Specified by:
getRawDatain interfaceRawObj- Returns:
- data converted into an array of string user readable information about the class
-
getX1
public List<Integer> getX1()
Get First Element start position to move- Returns:
- First Element start position to move
-
getX2
public List<Integer> getX2()
Get First Element end position to move- Returns:
- First Element end position to move
-
getY1
public List<Integer> getY1()
Get Second Element start position to move- Returns:
- Second Element start position to move
-
-