public class CharacterItem extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private ArrayList<Boolean> |
canPass |
private int |
icon |
private ArrayList<String> |
lands |
private ArrayList<Integer> |
landsColors |
private ArrayList<Float> |
landsCosts |
private String |
mainLand |
private String |
name |
Constructor and Description |
---|
CharacterItem(int icon,
String name,
String mainLand)
Constructor of the character.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<Boolean> |
getCanPass()
Check if the character is able to pass through a certain terrain.
|
int |
getIcon()
Get the icon of a character.
|
ArrayList<String> |
getLands()
Get the lands for the execution.
|
ArrayList<Integer> |
getLandsColors()
Get the land colors for the execution.
|
ArrayList<Float> |
getLandsCosts()
Get the lands costs for the executions.
|
String |
getMainLand()
Get the main land of a character.
|
String |
getName()
Get the name of a land.
|
void |
setCanPass(ArrayList<Boolean> canPass)
Set to a character the ability to go through a certain terrain.
|
void |
setIcon(int icon)
Set the icon to a character.
|
void |
setLands(ArrayList<String> lands)
Set the lands for the execution.
|
void |
setLandsColors(ArrayList<Integer> landsColors)
Set the land colors to the execution.
|
void |
setLandsCosts(ArrayList<Float> landsCosts)
Set the lands costs to the actual execution.
|
void |
setMainLand(String mainLand)
Set the main land to a character.
|
void |
setName(String name)
Set the name of a land.
|
public ArrayList<Boolean> getCanPass()
public void setCanPass(ArrayList<Boolean> canPass)
canPass
- boolean variable.public ArrayList<Integer> getLandsColors()
public void setLandsColors(ArrayList<Integer> landsColors)
landsColors
- Integer list of the codes.public void setLands(ArrayList<String> lands)
lands
- Lands list.public ArrayList<Float> getLandsCosts()
public void setLandsCosts(ArrayList<Float> landsCosts)
landsCosts
- Lands costs list.public String getName()
public void setName(String name)
name
- Land name.public String getMainLand()
public void setMainLand(String mainLand)
mainLand
- Main land value.public int getIcon()
public void setIcon(int icon)
icon
- icon value.