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

Method getToken

code/src/java/plugin/exporttokens/PoolToken.java:37–52  ·  view source on GitHub ↗
(String tokenSource, PlayerCharacter pc, ExportHandler eh)

Source from the content-addressed store, hash-verified

35 }
36
37 @Override
38 public String getToken(String tokenSource, PlayerCharacter pc, ExportHandler eh)
39 {
40 String retString = "";
41
42 if ("POOL.CURRENT".equals(tokenSource))
43 {
44 retString = Integer.toString(getCurrentToken(pc));
45 }
46 else if ("POOL.COST".equals(tokenSource))
47 {
48 retString = Integer.toString(getCostToken(pc));
49 }
50
51 return retString;
52 }
53
54 public static int getCostToken(PlayerCharacter pc)
55 {

Callers

nothing calls this directly

Calls 4

getCurrentTokenMethod · 0.95
getCostTokenMethod · 0.95
equalsMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected