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

Method getPC

code/src/java/pcgen/util/AbstractCountCommand.java:52–64  ·  view source on GitHub ↗

Get the PC that will be used to do the counting. @return the pc

()

Source from the content-addressed store, hash-verified

50 * @return the pc
51 */
52 protected PlayerCharacter getPC()
53 {
54 PlayerCharacter pc = null;
55 if (parent instanceof VariableProcessor)
56 {
57 pc = ((VariableProcessor) parent).getPc();
58 }
59 else if (parent instanceof PlayerCharacter)
60 {
61 pc = (PlayerCharacter) parent;
62 }
63 return pc;
64 }
65
66 /**
67 * pop maxParam parameters off the stack and populate the array. Note, this method

Callers

nothing calls this directly

Calls 1

getPcMethod · 0.45

Tested by

no test coverage detected