Merge pull request #12
Add: PlayerTest.java Added Javadoc For "getTotCharacters"
This commit is contained in:
@@ -32,6 +32,11 @@ public class Player {
|
|||||||
return UserName;
|
return UserName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the total {@link it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character Character Cards}
|
||||||
|
* the player currently posses.
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
public int getTotCharacters() {
|
public int getTotCharacters() {
|
||||||
return Arrays.stream(CharacterType.values())
|
return Arrays.stream(CharacterType.values())
|
||||||
.mapToInt(this::getNType)
|
.mapToInt(this::getNType)
|
||||||
|
|||||||
Reference in New Issue
Block a user