public/js-roguelike-skeleton/src/mixins/action-interface.js
function(action, source, settings){
            if(!this.resolvableActions){
                return false;
            }
            var handler = this.resolvableActions[action];
            if(!handler){
                return false;
            }
            if(handler.canResolveAction === false){
                return false;
            }
            if(handler.canResolveAction === true){
                return true;
            }
            return handler.canResolveAction.call(this, source, settings);
        }
function(action, source, settings){
            if(!this.resolvableActions){
                return false;
            }
            var handler = this.resolvableActions[action];
            if(!handler){
                return false;
            }
            if(handler.canResolveAction === false){
                return false;
            }
            if(handler.canResolveAction === true){
                return true;
            }
            return handler.canResolveAction.call(this, source, settings);
        }
function ( action , source , settings ) { if ( ! this . resolvableActions ) { return false ; } var handler = this . resolvableActions [ action ] ; if ( ! handler ) { return false ; } if ( handler . canResolveAction === false ) { return false ; } if ( handler . canResolveAction === true ) { return true ; } return handler . canResolveAction . call ( this , source , settings ) ; }
Checks if a target can resolve an action with given source and settings. `this` is the target.
@method canResolveAction
@param {String} action - The action being performed on this target to resolve.
@param {Object} source - The source object performing the action on this target.
@param {Object} [settings] - Settings for the action.
@return {Boolean} `true` if action was successfully resolved
Checks if a target can resolve an action with given source and settings . this is the target .