@Entity(name="TeamTypeRangedUnitAvailability") public final class PersistentTeamTypeRangedUnitAvailability extends Object implements com.bernardomg.tabletop.dreadball.model.availability.unit.TeamTypeRangedUnitAvailability, Serializable
TeamType,
where there is a range of how many times it can be acquired.
This is a persistent JPA-Based implementation.
| Constructor and Description |
|---|
PersistentTeamTypeRangedUnitAvailability()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Integer |
getId()
Returns the ID assigned to this entity.
|
Integer |
getInitialNumber() |
Integer |
getMaxNumber() |
com.bernardomg.tabletop.dreadball.model.faction.TeamType |
getTeamType() |
com.bernardomg.tabletop.dreadball.model.unit.Unit |
getUnit() |
int |
hashCode() |
void |
setId(Integer identifier)
Sets the ID assigned to this entity.
|
void |
setInitialNumber(Integer initialCount)
Sets the initial number of units for the team type.
|
void |
setMaxNumber(Integer maxCount)
Sets the max number of units for the team type.
|
void |
setTeamType(PersistentTeamType team)
Sets the team type for the availability.
|
void |
setUnit(PersistentUnit unitType)
Sets the unit for the availability.
|
String |
toString() |
public PersistentTeamTypeRangedUnitAvailability()
public final Integer getId()
public final Integer getInitialNumber()
getInitialNumber in interface com.bernardomg.tabletop.dreadball.model.availability.unit.TeamTypeRangedUnitAvailabilitypublic final Integer getMaxNumber()
getMaxNumber in interface com.bernardomg.tabletop.dreadball.model.availability.unit.TeamTypeRangedUnitAvailabilitypublic final com.bernardomg.tabletop.dreadball.model.faction.TeamType getTeamType()
getTeamType in interface com.bernardomg.tabletop.dreadball.model.availability.unit.TeamTypeUnitAvailabilitypublic final com.bernardomg.tabletop.dreadball.model.unit.Unit getUnit()
getUnit in interface com.bernardomg.tabletop.dreadball.model.availability.unit.TeamTypeUnitAvailabilitypublic final void setId(Integer identifier)
identifier - the ID for the entitypublic final void setInitialNumber(Integer initialCount)
initialCount - the initial number of units for the team typepublic final void setMaxNumber(Integer maxCount)
maxCount - the max number of units for the team typepublic final void setTeamType(PersistentTeamType team)
team - the team type for the availabilitypublic final void setUnit(PersistentUnit unitType)
unitType - the unit for the availabilityCopyright © 2015–2017 Bernardo MartÃnez Garrido. All rights reserved.