
let getter = {

};

Object.keys(getter).forEach(key => {
    let o = Object.getOwnPropertyDescriptor(getter, key);
    Object.defineProperty(StructureExtension.prototype, key, o);
});
Object.assign(StructureExtension.prototype, {

    isEmpty(){
        return !this.energy;
    },

    isFull(){
        return this.energy === this.energyCapacity;
    }
});
