* Pretty prints all enables flags using the names from `ScriptPointer`. * * @param flags The flags to print.
(flags: number)
| 199 | * @param flags The flags to print. |
| 200 | */ |
| 201 | private static pointerPrint(flags: number): string { |
| 202 | let text = ''; |
| 203 | for (let i = 0; i < ScriptPointer._LAST; i++) { |
| 204 | if ((flags & (1 << i)) != 0) { |
| 205 | text += `${ScriptPointerNameMap.get(i)}, `; |
| 206 | } |
| 207 | } |
| 208 | return text.substring(0, text.lastIndexOf(',')); |
| 209 | } |
| 210 | |
| 211 | /** |
| 212 | * Gets the active player. Automatically checks the operand to determine primary and secondary. |