import Component from "./Component" ; export default class EliteDragon extends Component { public assets ( ) { return [ this . parent . getEliteDragonAsset ( ) ] ; } public render ( context , ratio ) { const asset = this . parent . getEliteDragonAsset ( ) ; if ( ! asset ) { return ; } const coords = this . parent . eliteDragonCoords ; coords . ratio = ratio ; this . sunwell . drawImage ( context , asset , coords ) ; } }