// move.js
(function () {
/* global adventurejs A */
var p = adventurejs.Game.prototype;
/**
* <strong>move</strong> takes a string representing an
* asset name or id and tries to return an asset object.
* It doesn't actually move anything, but is one half of
* a call to MyGame.move(asset).to({in:asset})
* @memberOf adventurejs.Game
* @method adventurejs.Game#move
* @param {Object|String} asset Asset object or Name or ID of a game object.
* @returns {Object} A game asset.
*/
p.move = function Game_move(asset) {
if ("string" === typeof asset) {
asset = this.game.getAsset(asset);
}
return asset || this.game.world.null;
};
})();