/******************************************************
Description:
	A loot.

Parameters:
	type:
		A loot type.
	
	pos:
		Loot position.
	
	id:
		Loot id.
******************************************************/
Loot = function(type, pos, id) {
	this.type = type;
	this.pos = pos;
	this.id = id;
	
	this.r = 24;					// Loot radius.
};

Loot.prototype = {
	
	/******************************************************
	Eat this loot.
	******************************************************/
	eat: function(player) {
		this.type.eat(player);
	},
	
	/******************************************************
	Parse properties.
	******************************************************/
	parse: function() {
		return {
			typeId: this.type.id,
			pos: this.pos,
			id: this.id };
	}
};