@Override
	public void handleEvent(ERGameEvent e) {
		switch(e.eventType){
		case ERGameEvent.EVENT_MESSAGE:
			EmptyRoom.logMessage(e.data[0]+": "+e.data[0].toString());
			break;
		case ERGameEvent.EVENT_UPDATE:
			if(this.objects.containsKey( (e.data[0])) ){
				objects.get( (e.data[0]) ).updateFromServer(e);  
			} else{
				objects.put( (Integer)(e.data[0]) , GameObject.makeFromEvent(e)); 
			}
			break;
		case ERGameEvent.EVENT_DESTROY:
			objects.remove( (e.data[0]) );
			break;
		case ERGameEvent.EVENT_INTERACT:
			//TODO event interactions;s
			break;
		default:
			System.err.println("can't parse event "+e.toString());
			break;
		}
	}