public class LandItem extends Object
Modifier and Type | Field and Description |
---|---|
private android.widget.Button |
btnItemMap |
private int |
code |
private int |
color |
private boolean |
isFinal |
private boolean |
isInitial |
private String |
Name |
private android.graphics.Point |
position |
Constructor and Description |
---|
LandItem(android.widget.Button btnItemMap,
int code,
android.graphics.Point pos)
Constructor to the land value.
|
Modifier and Type | Method and Description |
---|---|
android.widget.Button |
getBtnItemMap()
Get the button of the land.
|
int |
getCode()
Obtain the code related to the land.
|
int |
getColor()
Get the color related to a specific land.
|
String |
getName()
Get the name of a land item tapped.
|
android.graphics.Point |
getPosition()
Get the position, in the map, of the land tapped.
|
int |
getX_Coordinate()
Obtain the X coordinate of a tile.
|
int |
getY_Coordinate()
Obtain the Y coordinate of a tile.
|
boolean |
isFinal()
Check if a certain tile is the final one, designated by the user.
|
boolean |
isInitial()
Check if the tile was designated as initial by the user.
|
void |
setBtnItemMap(android.widget.Button btnItemMap)
Set a button to the land.
|
void |
setColor(int color)
Set the color to a specific land.
|
void |
setFinal(boolean aFinal)
Set a tile as final, by the user.
|
void |
setInitial(boolean initial)
Set as initial a specific tile, putting the I char over it in the UI.
|
void |
setName(String name)
Set the name to a specific land.
|
void |
setPosition(android.graphics.Point position)
Set the position to a certain land value.
|
private android.widget.Button btnItemMap
private int code
private boolean isInitial
private boolean isFinal
private String Name
private int color
private android.graphics.Point position
public LandItem(android.widget.Button btnItemMap, int code, android.graphics.Point pos)
btnItemMap
- The button so it can be tapped by the user and obtain information.code
- Code of the land.pos
- Position, in the map, of the tile.public android.graphics.Point getPosition()
public void setPosition(android.graphics.Point position)
position
- position value.public android.widget.Button getBtnItemMap()
public void setBtnItemMap(android.widget.Button btnItemMap)
btnItemMap
- Button to the land tile.public boolean isInitial()
public void setInitial(boolean initial)
initial
- Boolean variable.public boolean isFinal()
public void setFinal(boolean aFinal)
aFinal
- a boolean variable.public String getName()
public void setName(String name)
name
- Name.public int getColor()
public int getCode()
public void setColor(int color)
color
- Color code.public int getX_Coordinate()
public int getY_Coordinate()