// $moveTo.js
(function () {
/*global adventurejs A*/
var p = adventurejs.Tangible.prototype;
/**
* $moveTo is an author shortcut that is similar
* to moveTo but which bypasses onMoveThatToThis,
* avoiding the consequences of any verb actions.
* @memberOf adventurejs.Tangible
* @method adventurejs.Tangible#$moveTo
* @param {String} aspect
* @param {Object} asset
*/
p.$moveTo = function Tangible_$moveTo(aspect, asset) {
if ("string" === typeof asset) asset = this.game.getAsset(asset);
if (!aspect || !asset) return false;
if (!asset.hasAspectAt(aspect)) return false;
this.setPlace(aspect, asset.id);
return true;
};
})();