Get the PC that will be used to determine the master @return the pc
()
| 111 | * @return the pc |
| 112 | */ |
| 113 | private PlayerCharacter getPC() |
| 114 | { |
| 115 | PlayerCharacter pc = null; |
| 116 | if (parent instanceof VariableProcessor) |
| 117 | { |
| 118 | pc = ((VariableProcessor) parent).getPc(); |
| 119 | } |
| 120 | else if (parent instanceof PlayerCharacter) |
| 121 | { |
| 122 | pc = (PlayerCharacter) parent; |
| 123 | } |
| 124 | return pc; |
| 125 | } |
| 126 | } |