MCPcopy Create free account
hub / github.com/PCGen/pcgen / racialSizeInt

Method racialSizeInt

code/src/java/pcgen/cdom/facet/model/SizeFacet.java:83–102  ·  view source on GitHub ↗

Returns the integer indicating the racial size for the Player Character identified by the given CharID. @param id The CharID identifying the Player Character for which the racial size will be returned @return the integer indicating the racial size for the Player Character

(CharID id)

Source from the content-addressed store, hash-verified

81 * identified by the given CharID
82 */
83 public int racialSizeInt(CharID id)
84 {
85 String baseSizeControl = ControlUtilities.getControlToken(
86 loadContextFacet.get(id.getDatasetID()).get(), CControl.BASESIZE);
87 if (baseSizeControl != null)
88 {
89 SizeAdjustment baseSize = (SizeAdjustment) resultFacet
90 .getGlobalVariable(id, baseSizeControl);
91 return baseSize.get(IntegerKey.SIZEORDER);
92 }
93 else
94 {
95 SizeFacetInfo info = getInfo(id);
96 if (info == null)
97 {
98 return SizeUtilities.getDefaultSizeAdjustment().get(IntegerKey.SIZEORDER);
99 }
100 return info.racialSizeInt;
101 }
102 }
103
104 private int calcRacialSizeInt(CharID id)
105 {

Callers 6

testReachUnsetDefaultMethod · 0.45
testAvoidPollutionMethod · 0.45
passesMethod · 0.45
getEqDamageMethod · 0.45

Calls 6

getControlTokenMethod · 0.95
getInfoMethod · 0.95
getDatasetIDMethod · 0.80
getGlobalVariableMethod · 0.80
getMethod · 0.65

Tested by 5

testReachUnsetDefaultMethod · 0.36
testAvoidPollutionMethod · 0.36
passesMethod · 0.36