@MappedSuperclass public abstract class AbstractPersistentAffinityTeamPlayer extends AbstractPersistentTeamPlayer implements com.bernardomg.tabletop.dreadball.model.player.AffinityTeamPlayer
This is a persistent JPA-Based implementation.
| Constructor and Description |
|---|
AbstractPersistentAffinityTeamPlayer()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAffinityGroup(PersistentAffinityGroup affinity)
Adds an affinity group to the player.
|
void |
addHatedAffinityGroup(PersistentAffinityGroup affinity)
Adds a hated affinity group to the player.
|
java.util.Collection<com.bernardomg.tabletop.dreadball.model.player.stats.AffinityGroup> |
getAffinityGroups() |
java.lang.Integer |
getAllyCost() |
java.lang.Integer |
getFriendCost() |
java.util.Collection<com.bernardomg.tabletop.dreadball.model.player.stats.AffinityGroup> |
getHatedAffinityGroups() |
java.lang.Integer |
getStrangerCost() |
void |
removeAffinityGroup(com.bernardomg.tabletop.dreadball.model.player.stats.AffinityGroup affinity)
Removes an affinity group from the player.
|
void |
removeHatedAffinityGroup(com.bernardomg.tabletop.dreadball.model.player.stats.AffinityGroup affinity)
Removes a hated affinity group from the player.
|
void |
setAffinityGroups(java.util.Collection<com.bernardomg.tabletop.dreadball.model.player.stats.AffinityGroup> affinityGroups)
Sets the player affinities.
|
void |
setAllyCost(java.lang.Integer cost)
Sets the player's ally cost.
|
void |
setFriendCost(java.lang.Integer cost)
Sets the player's friend cost.
|
void |
setHatedAffinityGroups(java.util.Collection<com.bernardomg.tabletop.dreadball.model.player.stats.AffinityGroup> affinityGroups)
Sets the player hated affinities.
|
void |
setStrangerCost(java.lang.Integer cost)
Sets the player's stranger cost.
|
addAbility, equals, getAbilities, getAttributes, getCost, getGiant, getId, getMvp, getName, getRole, getTemplateName, hashCode, removeAbility, setAbilities, setAttributes, setCost, setGiant, setId, setName, setRole, setTemplateName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic AbstractPersistentAffinityTeamPlayer()
public final void addAffinityGroup(PersistentAffinityGroup affinity)
affinity - affinity group to addpublic final void addHatedAffinityGroup(PersistentAffinityGroup affinity)
affinity - affinity group to addpublic final java.util.Collection<com.bernardomg.tabletop.dreadball.model.player.stats.AffinityGroup> getAffinityGroups()
getAffinityGroups in interface com.bernardomg.tabletop.dreadball.model.player.AffinityTeamPlayerpublic final java.lang.Integer getAllyCost()
getAllyCost in interface com.bernardomg.tabletop.dreadball.model.player.AffinityTeamPlayerpublic final java.lang.Integer getFriendCost()
getFriendCost in interface com.bernardomg.tabletop.dreadball.model.player.AffinityTeamPlayerpublic final java.util.Collection<com.bernardomg.tabletop.dreadball.model.player.stats.AffinityGroup> getHatedAffinityGroups()
getHatedAffinityGroups in interface com.bernardomg.tabletop.dreadball.model.player.AffinityTeamPlayerpublic final java.lang.Integer getStrangerCost()
getStrangerCost in interface com.bernardomg.tabletop.dreadball.model.player.AffinityTeamPlayerpublic final void removeAffinityGroup(com.bernardomg.tabletop.dreadball.model.player.stats.AffinityGroup affinity)
affinity - the affinity group to removepublic final void removeHatedAffinityGroup(com.bernardomg.tabletop.dreadball.model.player.stats.AffinityGroup affinity)
affinity - the hated affinity group to removepublic final void setAffinityGroups(java.util.Collection<com.bernardomg.tabletop.dreadball.model.player.stats.AffinityGroup> affinityGroups)
All the affinities in the player will be removed and swapped with the received ones.
affinityGroups - the affinities to set on the playerpublic final void setAllyCost(java.lang.Integer cost)
cost - the player's ally costpublic final void setFriendCost(java.lang.Integer cost)
cost - the player's friend costpublic final void setHatedAffinityGroups(java.util.Collection<com.bernardomg.tabletop.dreadball.model.player.stats.AffinityGroup> affinityGroups)
All the hated affinities in the player will be removed and swapped with the received ones.
affinityGroups - the hated affinities to set on the playerpublic final void setStrangerCost(java.lang.Integer cost)
cost - the player's stranger costCopyright © 2015–2018 Bernardo MartÃnez Garrido. All rights reserved.