@Entity(name="TeamPlayer")
public abstract class AbstractPersistentTeamPlayer
extends java.lang.Object
implements com.bernardomg.tabletop.dreadball.model.player.TeamPlayer
This is a persistent JPA-Based implementation.
| Constructor and Description |
|---|
AbstractPersistentTeamPlayer()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAbility(com.bernardomg.tabletop.dreadball.model.player.stats.Ability ability)
Adds an ability to the player.
|
boolean |
equals(java.lang.Object obj) |
java.util.Collection<com.bernardomg.tabletop.dreadball.model.player.stats.Ability> |
getAbilities() |
com.bernardomg.tabletop.dreadball.model.player.stats.Attributes |
getAttributes() |
java.lang.Integer |
getCost() |
java.lang.Boolean |
getGiant() |
java.lang.Integer |
getId()
Returns the ID assigned to this player.
|
java.lang.Boolean |
getMvp() |
java.lang.String |
getName() |
com.bernardomg.tabletop.dreadball.model.player.Role |
getRole() |
java.lang.String |
getTemplateName() |
int |
hashCode() |
void |
removeAbility(com.bernardomg.tabletop.dreadball.model.player.stats.Ability ability)
Removes an ability from the player.
|
void |
setAbilities(java.util.Collection<com.bernardomg.tabletop.dreadball.model.player.stats.Ability> playerAbilities)
Sets the player abilities.
|
void |
setAttributes(com.bernardomg.tabletop.dreadball.model.player.stats.Attributes attrs)
Sets the player attributes.
|
void |
setCost(java.lang.Integer costPlayer)
Sets the player's cost.
|
void |
setGiant(java.lang.Boolean giantFlag)
Sets the player giant flag.
|
void |
setId(java.lang.Integer identifier)
Sets the ID assigned to this entity.
|
void |
setName(java.lang.String playerName)
Sets the player name.
|
void |
setRole(com.bernardomg.tabletop.dreadball.model.player.Role playerRole)
Sets the player team role.
|
void |
setTemplateName(java.lang.String tname)
Sets the player's template name.
|
java.lang.String |
toString() |
public AbstractPersistentTeamPlayer()
public final void addAbility(com.bernardomg.tabletop.dreadball.model.player.stats.Ability ability)
ability - the ability to addpublic final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final java.util.Collection<com.bernardomg.tabletop.dreadball.model.player.stats.Ability> getAbilities()
getAbilities in interface com.bernardomg.tabletop.dreadball.model.player.TeamPlayerpublic final com.bernardomg.tabletop.dreadball.model.player.stats.Attributes getAttributes()
getAttributes in interface com.bernardomg.tabletop.dreadball.model.player.TeamPlayerpublic final java.lang.Integer getCost()
getCost in interface com.bernardomg.tabletop.dreadball.model.player.TeamPlayerpublic final java.lang.Boolean getGiant()
getGiant in interface com.bernardomg.tabletop.dreadball.model.player.TeamPlayerpublic final java.lang.Integer getId()
public final java.lang.Boolean getMvp()
getMvp in interface com.bernardomg.tabletop.dreadball.model.player.TeamPlayerpublic final java.lang.String getName()
getName in interface com.bernardomg.tabletop.dreadball.model.player.TeamPlayerpublic final com.bernardomg.tabletop.dreadball.model.player.Role getRole()
getRole in interface com.bernardomg.tabletop.dreadball.model.player.TeamPlayerpublic final java.lang.String getTemplateName()
getTemplateName in interface com.bernardomg.tabletop.dreadball.model.player.TeamPlayerpublic final int hashCode()
hashCode in class java.lang.Objectpublic final void removeAbility(com.bernardomg.tabletop.dreadball.model.player.stats.Ability ability)
ability - the ability to removepublic final void setAbilities(java.util.Collection<com.bernardomg.tabletop.dreadball.model.player.stats.Ability> playerAbilities)
All the abilities which the player currently has will be removed and swapped with the received ones.
playerAbilities - the abilities to set on the playerpublic final void setAttributes(com.bernardomg.tabletop.dreadball.model.player.stats.Attributes attrs)
attrs - the attributes for the playerpublic final void setCost(java.lang.Integer costPlayer)
costPlayer - the player's costpublic final void setGiant(java.lang.Boolean giantFlag)
giantFlag - the flag indicating if the player is a giantpublic final void setId(java.lang.Integer identifier)
identifier - the ID for the entitypublic final void setName(java.lang.String playerName)
playerName - the player namepublic final void setRole(com.bernardomg.tabletop.dreadball.model.player.Role playerRole)
playerRole - the team role for the playerpublic final void setTemplateName(java.lang.String tname)
tname - the template namepublic final java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015–2018 Bernardo MartÃnez Garrido. All rights reserved.