ChatPanel* MainJoinBattleTab::GetActiveChatPanel()
{
	if ( m_tabs->GetSelection() == 1 ) {
		return &GetBattleRoomTab().GetChatPanel();
	}
	return 0;
}
void MainJoinBattleTab::UpdateCurrentBattle( const wxString& Tag )
{
	GetBattleRoomTab().UpdateBattleInfo( Tag );
	GetBattleMapTab().Update( Tag );
	GetOptionsTab().UpdateBattle( Tag );
	GetMMOptionsTab().UpdateOptControls( Tag );
}
ChatPanel* MainJoinBattleTab::GetActiveChatPanel()
{
	if (m_tabs->GetSelection() == 0) { //not really needed
		return &GetBattleRoomTab().GetChatPanel();
	}
	return NULL;
}
void MainJoinBattleTab::BattleUserUpdated( User& user )
{
	try
	{
		GetBattleRoomTab().UpdateUser( user );
	} catch ( ... ) {}
	try
	{
		GetBattleMapTab().UpdateUser( user );
	} catch ( ... ) {}
}
void MainJoinBattleTab::ReloadPresetList()
{
	try
	{
		GetBattleRoomTab().UpdatePresetList();
	} catch ( ... ) {}
	try
	{
		GetMMOptionsTab().UpdatePresetList();
	} catch ( ... ) {}

}
//void MainJoinBattleTab::UpdateCurrentBattle()
void MainJoinBattleTab::UpdateCurrentBattle()
{
	GetBattleRoomTab().UpdateBattleInfo();
	GetBattleMapTab().Update();
}
bool MainJoinBattleTab::UseBattlePerspective()
{
    return GetBattleRoomTab().GetBattle() != 0;
}