src/entities/WeaponItem.js
/**
	* Adds the weapon to the given entity.
	*
	* @param {GameEntity} entity - The entity that receives this item.
	* @return {WeaponItem} A reference to this item.
	*/
Adds the weapon to the given entity.
@param {GameEntity} entity - The entity that receives this item.
@return {WeaponItem} A reference to this item.
Adds the weapon to the given entity . @param { GameEntity } entity - The entity that receives this item . @return { WeaponItem } A reference to this item .
addItemToEntity( entity ) {
		entity.addWeapon( this.type ); 
		return this;
	}
addItemToEntity ( entity ) { entity . addWeapon ( this . type ) ; return this ; }
Adds the weapon to the given entity.
Adds the weapon to the given entity .
// we assume .addWeapon() is implemented by the game entity