@Entity(name="AffinityComponent") public final class PersistentAffinityComponent extends AbstractPersistentComponent implements com.bernardomg.tabletop.dreadball.model.player.component.AffinityComponent, java.io.Serializable
This is a persistent JPA-Based implementation.
| Constructor and Description |
|---|
PersistentAffinityComponent()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getAllyCost() |
java.lang.Integer |
getCost() |
java.lang.Integer |
getFriendCost() |
java.lang.Integer |
getStrangerCost() |
void |
setAllyCost(java.lang.Integer cost)
Sets the ally cost.
|
void |
setFriendCost(java.lang.Integer cost)
Sets the friend cost.
|
void |
setStrangerCost(java.lang.Integer cost)
Sets the stranger cost.
|
addAbility, addRole, equals, getAbilities, getAttributes, getId, getLocation, getName, getRoles, hashCode, removeAbility, removeRole, setAbilities, setAttributes, setComponentName, setId, setLocation, setRolepublic PersistentAffinityComponent()
public final java.lang.Integer getAllyCost()
getAllyCost in interface com.bernardomg.tabletop.dreadball.model.player.component.AffinityComponentpublic final java.lang.Integer getCost()
getCost in interface com.bernardomg.tabletop.dreadball.model.player.component.AffinityComponentgetCost in interface com.bernardomg.tabletop.dreadball.model.player.component.Componentpublic final java.lang.Integer getFriendCost()
getFriendCost in interface com.bernardomg.tabletop.dreadball.model.player.component.AffinityComponentpublic final java.lang.Integer getStrangerCost()
getStrangerCost in interface com.bernardomg.tabletop.dreadball.model.player.component.AffinityComponentpublic final void setAllyCost(java.lang.Integer cost)
cost - the ally costpublic final void setFriendCost(java.lang.Integer cost)
cost - the friend costpublic final void setStrangerCost(java.lang.Integer cost)
cost - the stranger costCopyright © 2015–2018 Bernardo MartÃnez Garrido. All rights reserved.