/**
 * Base class for any playable object.
 */
function Playable (){
	
	// private
	
	// protected
	this.__id;
	this.__title;
	this.__launchLocation;
	this.__type;
	
	// public
	this.getId = function () {
		return this.__id;
	}
	
	this.setId = function (id) {
		this.__id = id;
	}
	
	this.getTitle = function () {
		return this.__title;
	}
	
	this.getTitle = function (limit){
		var tmpTitle = this.__title;
		if(this.__title.length > limit)
				tmpTitle = this.__title.substring(0,limit) + "...";
		return tmpTitle;
	}
	this.setTitle = function (title){
		this.__title = title;
	}
	
	this.getLaunchLocation = function (){
		return this.__launchLocation;
	}
	
	this.setLaunchLocation = function (launchLocation){
		this.__launchLocation = launchLocation;
	}
	
	this.getType = function() {
		return this.__type;
	}
	
	this.setType = function(type) {
		this.__type = type;
	}
}