GameBoy\Core::__construct PHP Méthode

__construct() public méthode

public __construct ( $ROMImage, $drawContext )
    public function __construct($ROMImage, $drawContext)
    {
        $this->drawContext = $drawContext;
        $this->ROMImage = $ROMImage;
        $this->tileCountInvalidator = $this->tileCount * 4;
        $this->ROMBanks[0x52] = 72;
        $this->ROMBanks[0x53] = 80;
        $this->ROMBanks[0x54] = 96;
        $this->frameCount = Settings::$frameskipBaseFactor;
        $this->pixelCount = $this->width * $this->height;
        $this->rgbCount = $this->pixelCount * 4;
        // Copy Data
        $this->DAATable = Data::$DAATable;
        $this->ffxxDump = Data::$ffxxDump;
        $this->TICKTable = TICKTables::$primary;
        $this->SecondaryTICKTable = TICKTables::$secondary;
        //Initialize the LCD Controller
        $this->lcdController = new LcdController($this);
    }