import { EnemyRobot } from "src/Adaptee/EnemyRobot.impl" ; import { EnemyAttacker } from "src/Target-Interface/EnemyAttacker.interface" ; export class EnemyRobotAdapter implements EnemyAttacker { public theRobot : EnemyRobot ; constructor ( robot ) { this . theRobot = robot ; } fireWeapon ( ) { this . theRobot . smashWithHands ( ) ; } driveForward ( ) { this . theRobot . walkForward ( ) ; } assignDriver ( driverName ) { this . theRobot . reactToHuman ( driverName ) ; } }