Package api
Class PortalInfo
- java.lang.Object
-
- api.PortalInfo
-
public class PortalInfo extends java.lang.ObjectStores information about a portal for use when creating a Pearls grid from a string representation. SeeStringUtil#createFromStringArray. Portals are identified in a string representation by a pair of capital letters that subsequently have to be matched to calculate the offsets to the companion portal.- Author:
- smkautz
-
-
Constructor Summary
Constructors Constructor Description PortalInfo(char id, int row, int col)Constructs a PortalInfo object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCol()Returns the column for the portal.chargetId()Returns the character identifying the portal.intgetRow()Returns the row for the portal.
-
-
-
Method Detail
-
getId
public char getId()
Returns the character identifying the portal.- Returns:
- id for the portal
-
getRow
public int getRow()
Returns the row for the portal.- Returns:
- row for the portal
-
getCol
public int getCol()
Returns the column for the portal. column for the portal- Returns:
- column for the portal
-
-