* Verifies all `pointers` are enabled. * * @param pointers The pointers to check for.
(...pointers: ScriptPointer[])
| 185 | get activePlayer() { |
| 186 | const player = this.intOperand === 0 ? this._activePlayer : this._activePlayer2; |
| 187 | if (player === null) { |
| 188 | throw new Error('Attempt to access null active_player'); |
| 189 | } |
| 190 | return player; |
| 191 | } |
| 192 | |
| 193 | // gets the secondary player from the perspective of the command (.command returns player1) |
| 194 | get activePlayer2() { |
| 195 | const player = this.intOperand === 0 ? this._activePlayer2 : this._activePlayer; |
| 196 | if (player === null) { |
| 197 | throw new Error('Attempt to access null active_player'); |
no test coverage detected