import { Reel } from '..'; export class DynamicReel extends Reel { /** * Check if symbol is visible * @param index - index of symbol on current reel * @param staticReel - ref of the static reel * @returns true if symbol is visible, false otherwise */ public isSymbolVisible(index: number, staticReel: Reel): boolean { const symbolPos = this.symbols[index].getGlobalPosition(); return staticReel.getBounds().contains(symbolPos.x, symbolPos.y); } }