HUDLayer* HUDLayer::create(HUD_ID status){
	HUDLayer *pHUD = new HUDLayer();
	if (pHUD && pHUD->init(status)) {
		pHUD->autorelease();
		return pHUD;
	}
	CC_SAFE_DELETE(pHUD);
	return NULL;
}
HUDLayer* HUDLayer::create(HUDLayerListener *theListener){
	HUDLayer* aHUDLayer = new HUDLayer();
	if (aHUDLayer->init()) {
		aHUDLayer->autorelease();
		aHUDLayer->mListener = theListener;
		return aHUDLayer;
	}
	
	CC_SAFE_DELETE(aHUDLayer);
	return NULL;
}