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

Method getSquaresToken

code/src/java/plugin/exporttokens/MoveToken.java:92–96  ·  view source on GitHub ↗
(CharacterDisplay display, int moveIndex)

Source from the content-addressed store, hash-verified

90 }
91
92 public static String getSquaresToken(CharacterDisplay display, int moveIndex)
93 {
94 return Integer.toString(
95 (int) (display.getMovementValues().get(moveIndex).getWeight() / SettingsHandler.getGameAsProperty().get().getSquareSize()));
96 }
97}

Callers 1

getTokenMethod · 0.95

Calls 6

getGameAsPropertyMethod · 0.95
getSquareSizeMethod · 0.80
toStringMethod · 0.65
getWeightMethod · 0.65
getMethod · 0.65
getMovementValuesMethod · 0.45

Tested by

no test coverage detected