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

Method getToken

code/src/java/pcgen/io/exporttoken/WeaponhToken.java:68–78  ·  view source on GitHub ↗

Get the value of the supplied output token. @param tokenSource The full source of the token @param pc The character to retrieve the value for. @param eh The ExportHandler that is managing the export (may be null for a once off conversion). @return The value of the token.

(String tokenSource, PlayerCharacter pc, ExportHandler eh)

Source from the content-addressed store, hash-verified

66 * @return The value of the token.
67 */
68 @Override
69 public String getToken(String tokenSource, PlayerCharacter pc, ExportHandler eh)
70 {
71 StringTokenizer aTok = new StringTokenizer(tokenSource, ".", false);
72 //Weapono Token
73 aTok.nextToken();
74
75 Equipment eq = getWeaponEquipment(pc);
76
77 return getWeaponToken(pc, eq, aTok, tokenSource);
78 }
79
80 /**
81 * Create a fake Unarmed Strike equipment so we don't need it in the .lst files anymore

Callers

nothing calls this directly

Calls 3

getWeaponEquipmentMethod · 0.95
nextTokenMethod · 0.80
getWeaponTokenMethod · 0.80

Tested by

no test coverage detected