import { EnemyAttacker } from "./EnemyAttacker.interface" ; export class EnemyTank implements EnemyAttacker { fireWeapon ( ) { const randomDamage = Math . floor ( Math . random ( ) * 10 ) + 1 ; console . log ( `Enemy Tank Caused ${ randomDamage } Damage Points.` ) ; } driveForward ( ) { const randomMovement = Math . floor ( Math . random ( ) * 5 ) + 1 ; console . log ( `Enemy Tank Moved ${ randomMovement }.` ) ; } assignDriver ( driverName ) { console . log ( `Driver ${ driverName } is assigned to Enemy Tank.` ) ; } }