Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// Character_Can.js
(function () {
  /*global adventurejs A*/
  "use strict";

  /**
   * @ajspath adventurejs.Atom.StateManager.Asset_Can.Tangible_Can.Character_Can
   * @augments adventurejs.Character_Can
   * @class adventurejs.Character_Can
   * @ajsnavheading StateClasses
   * @param {String} game_name Name of top level game instance that is scoped to window.
   * @param {String} name Instance name.
   * @summary A container for state variables.
   * @classdesc
   * <strong>Character_Can</strong> is a state management class
   * used to store a variety of booleans for
   * {@link adventurejs.Character|Character Assets}.
   **/

  class Character_Can extends adventurejs.Asset_Can {
    constructor(name = "can", game_name, parent_id) {
      // Call the constructor of the parent class
      super(name, game_name, parent_id);

      this.class = "Character_Can";

      this.climb = true;
      this.crawl = true;
      this.float = false;
      this.fly = false;
      this.hover = false;
      this.slither = true;
      this.swim = true;
      this.hop = true;

      this.cling = true;
      this.hang = true;
      this.kneel = true;
      this.lie = true;
      this.sit = true;
      this.stand = true;

      return this;
    }
  }
  adventurejs.Character_Can = Character_Can;
})();