Application=function()
{this.entities=new Array();this.index=0;this.activeMap=null;this.activeList=null;}
Application.prototype.register=function(entity,type)
{this.entities[this.index]=entity;entity.id=this.index++;entity.type=type;}
Application.prototype.get=function(id)
{return this.entities[id];}
Application.prototype.setActiveMap=function(map)
{this.activeMap=map;}
Application.prototype.getActiveMap=function()
{return this.activeMap;}
Application.prototype.setActiveList=function(list)
{this.activeList=list;}
Application.prototype.getActiveList=function()
{return this.activeList;}
