java.lang.Object
polimi.ingsw.am21.codex.model.Cards.Position
- All Implemented Interfaces:
Serializable
Represents a position in the isometric grid
The isometric grid is a grid with the following properties:
1. The origin is in the center of the grid
2. The x-axis is oriented to the bottom-right part of the screen
3. The y-axis is oriented to the top-right part of the screen
1. The origin is in the center of the grid
2. The x-axis is oriented to the bottom-right part of the screen
3. The y-axis is oriented to the top-right part of the screen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeAdjacentPosition
(AdjacentPosition adjacentPosition) Calculates the position of the given relative offsetboolean
int
getX()
int
getY()
int
hashCode()
toString()
-
Constructor Details
-
Position
public Position(int x, int y) -
Position
public Position()
-
-
Method Details