@Entity(name="AffinityComponent") public final class PersistentAffinityComponent extends AbstractPersistentComponent implements com.bernardomg.tabletop.dreadball.model.unit.component.AffinityComponent, Serializable
This is a persistent JPA-Based implementation.
| Constructor and Description |
|---|
PersistentAffinityComponent()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getAllyCost() |
Integer |
getCost() |
Integer |
getFriendCost() |
Integer |
getStrangerCost() |
void |
setAllyCost(Integer cost)
Sets the ally cost.
|
void |
setFriendCost(Integer cost)
Sets the friend cost.
|
void |
setStrangerCost(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 Integer getAllyCost()
getAllyCost in interface com.bernardomg.tabletop.dreadball.model.unit.component.AffinityComponentpublic final Integer getCost()
getCost in interface com.bernardomg.tabletop.dreadball.model.unit.component.AffinityComponentgetCost in interface com.bernardomg.tabletop.dreadball.model.unit.component.Componentpublic final Integer getFriendCost()
getFriendCost in interface com.bernardomg.tabletop.dreadball.model.unit.component.AffinityComponentpublic final Integer getStrangerCost()
getStrangerCost in interface com.bernardomg.tabletop.dreadball.model.unit.component.AffinityComponentpublic final void setAllyCost(Integer cost)
cost - the ally costpublic final void setFriendCost(Integer cost)
cost - the friend costpublic final void setStrangerCost(Integer cost)
cost - the stranger costCopyright © 2015–2018 Bernardo MartÃnez Garrido. All rights reserved.