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)
| 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 | { |