{"size": 341, "ext": "js", "max_stars_repo_path": "js/actor/goblin.js", "max_stars_repo_name": "RikKierkels/Lab-Functional-Composition", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/actor/goblin.js", "max_issues_repo_name": "RikKierkels/Lab-Functional-Composition", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/actor/goblin.js", "max_forks_repo_name": "RikKierkels/Lab-Functional-Composition", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.0588235294, "max_line_length": 52, "alphanum_fraction": 0.6304985337}
import { FunctionalMixin } from "../utils/utils.js";

const Goblin = FunctionalMixin({
  update(time) {
    return this;
  },
  hit(other) {
    return other.wound(this.baseDamage);
  },
  draw({ displayContext, image }) {
    const { x, y } = this.location.get();
    displayContext.drawImage(image, x, y);
  },
});

export default Goblin;
