code: function loadWarrior(
    { name, character, color, maxHealth, abilities, effects, position },
    floor,
    playerCode,
  ) {
    const warrior = new Warrior(name, character, color, maxHealth);
    loadAbilities(warrior, abilities);
    loadEffects(warrior, effects);
    warrior.playTurn = playerCode ? loadPlayer(playerCode) : () => {};
    floor.addWarrior(warrior, position);
  }
docs: Loads the warrior.
  
  @param {Object} warriorConfig The config of the warrior.
  @param {Floor} floor The floor of the level.
  @param {string} [playerCode] The code of the player.