Player added methods and javadoc
This commit is contained in:
parent
5e0ebedfea
commit
9a79bf0cf4
|
@ -37,6 +37,19 @@ public class Player {
|
||||||
return resources;
|
return resources;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method returns player faction
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Config.Faction getFaction() { return faction; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method returns for specific resource how much player possesess.
|
||||||
|
* @param resource
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public int getSpecificResource(Config.Resource resource) { return resources.get(resource); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method adds a specific resource to resourcess
|
* This method adds a specific resource to resourcess
|
||||||
* @param resource to add
|
* @param resource to add
|
||||||
|
|
Loading…
Reference in New Issue