public/js-roguelike-skeleton/src/object-manager.js
function(object) {
            this.map.remove(object.x, object.y);
            var index = this.objects.indexOf(object);
            this.objects.splice(index, 1);
            if(object.onRemove){
                object.onRemove();
            }
        }
function(object) {
            this.map.remove(object.x, object.y);
            var index = this.objects.indexOf(object);
            this.objects.splice(index, 1);
            if(object.onRemove){
                object.onRemove();
            }
        }
function ( object ) { this . map . remove ( object . x , object . y ) ; var index = this . objects . indexOf ( object ) ; this . objects . splice ( index , 1 ) ; if ( object . onRemove ) { object . onRemove ( ) ; } }
Removes an object from the manager.
@method remove
@param {Object} object - The objectity to be removed.
Removes an object from the manager .