当前位置: 首页>>代码示例>>C++>>正文


C++ wxLogDebugFunc函数代码示例

本文整理汇总了C++中wxLogDebugFunc函数的典型用法代码示例。如果您正苦于以下问题:C++ wxLogDebugFunc函数的具体用法?C++ wxLogDebugFunc怎么用?C++ wxLogDebugFunc使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了wxLogDebugFunc函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: wxLogDebugFunc

void ServerEvents::OnHostedBattle( int battleid )
{
    wxLogDebugFunc( _T("") );
    try
    {
        Battle& battle = m_serv.GetBattle( battleid );

				if ( battle.GetBattleType() == BT_Played )
				{
					battle.CustomBattleOptions().loadOptions( OptionsWrapper::MapOption, battle.GetHostMapName() );
					battle.CustomBattleOptions().loadOptions( OptionsWrapper::ModOption, battle.GetHostModName() );
				}
				else
				{
					battle.GetBattleFromScript( true );
				}


        wxString presetname = sett().GetModDefaultPresetName( battle.GetHostModName() );
        if ( !presetname.IsEmpty() )
        {
            battle.LoadOptionsPreset( presetname );
        }

        battle.LoadMapDefaults( battle.GetHostMapName() );

        m_serv.SendHostInfo( IBattle::HI_Send_All_opts );

        ui().OnHostedBattle( battle );
    }
    catch (assert_exception) {}
}
开发者ID:SpliFF,项目名称:springlobby,代码行数:32,代码来源:serverevents.cpp

示例2: wxLogDebugFunc

int OptionsWrapper::GetAIOptionIndex( const wxString& nick ) const
{
	std::map<wxString,int>::const_iterator itor = m_ais_indexes.find(nick);
	int pos = -1;
	if ( itor != m_ais_indexes.end() ) pos = itor->second;
	wxLogDebugFunc( _T("bot name: ") + nick + _T(" option index: ") + TowxString( pos ) );
	return pos;
}
开发者ID:N2maniac,项目名称:springlobby-join-fork,代码行数:8,代码来源:mmoptionswrapper.cpp

示例3: wxLogDebugFunc

void MapSelectDialog::OnMapGridLeftDClick(wxMouseEvent& /*unused*/)
{
	wxLogDebugFunc( _T("") );

	if ( m_mapgrid->GetSelectedMap() ) {
		EndModal( wxID_OK );
	}
}
开发者ID:jamerlan,项目名称:springlobby,代码行数:8,代码来源:mapselectdialog.cpp

示例4: wxLogDebugFunc

PlaybackTab<PlaybackTraits>::~PlaybackTab()
{
	m_minimap->SetBattle( NULL );
	if ( m_filter != 0 )
		m_filter->SaveFilterValues();

	wxLogDebugFunc( _T( "" ) );
}
开发者ID:SpliFF,项目名称:springlobby,代码行数:8,代码来源:playbacktab.cpp

示例5: wxLogDebugFunc

UnitSyncMod SpringUnitSync::GetMod( int index )
{
  wxLogDebugFunc( _T("") );
  UnitSyncMod m;
  m.name = m_mod_array[index];
  m.hash = m_mods_list[m.name];

  return m;
 }
开发者ID:SpliFF,项目名称:springlobby,代码行数:9,代码来源:springunitsync.cpp

示例6: wxLogDebugFunc

void Spring::OnTerminated( wxCommandEvent& event )
{
    wxLogDebugFunc( _T("") );
    m_running = false;
    m_process = 0; // NOTE I'm not sure if this should be deleted or not, according to wx docs it shouldn't.
    m_wx_process = 0;
	event.SetEventType(GlobalEvent::OnSpringTerminated);
	GlobalEvent::Send(event);
}
开发者ID:jamerlan,项目名称:springlobby,代码行数:9,代码来源:spring.cpp

示例7: wxLogDebugFunc

void Spring::OnTerminated( wxCommandEvent& event )
{
    wxLogDebugFunc( _T("") );
    m_running = false;
    m_process = 0; // NOTE I'm not sure if this should be deleted or not, according to wx docs it shouldn't.
    m_wx_process = 0;
    ui().OnSpringTerminated( event.GetExtraLong() );
    GetGlobalEventSender(GlobalEvents::OnSpringTerminated).SendEvent( event.GetExtraLong() );
}
开发者ID:tvo,项目名称:springlobby,代码行数:9,代码来源:spring.cpp

示例8: wxLogDebugFunc

void ChatPanel::Part()
{
	wxLogDebugFunc( _T( "" ) );
	if ( m_type == CPT_Channel )
	{
		if ( m_channel == 0 ) return;
		m_channel->Leave();
		m_channel->uidata.panel = 0;
	}
}
开发者ID:mallyvai,项目名称:springlobby,代码行数:10,代码来源:chatpanel.cpp

示例9: wxLogDebugFunc

void BattleRoomTab::OnMapBrowse( wxCommandEvent& /*unused*/ )
{
	if ( !m_battle ) return;
	wxLogDebugFunc( _T( "" ) );

	if ( mapSelectDialog().ShowModal() == wxID_OK && mapSelectDialog().GetSelectedMap() != NULL )
	{
		wxString mapname = mapSelectDialog().GetSelectedMap()->name;
		wxLogDebugFunc( mapname );
		if ( !m_battle->IsFounderMe() )
		{
			m_battle->DoAction( _T( "suggests " ) + mapname );
			return;
		}
		const int idx = m_map_combo->FindString( mapname, true /*case sensitive*/ );
		if ( idx != wxNOT_FOUND )
            SetMap( idx );
	}
}
开发者ID:SpliFF,项目名称:springlobby,代码行数:19,代码来源:battleroomtab.cpp

示例10: wxLogDebugFunc

void BattleroomListCtrl::OnColourSelect( wxCommandEvent& /*unused*/ )
{
  wxLogDebugFunc( _T("") );

	wxColour CurrentColour = m_sel_user->BattleStatus().colour;
	CurrentColour = GetColourFromUser(this, CurrentColour);
	if ( !CurrentColour.IsOk() ) return;
	if( m_sel_user ) ((Battle*)m_battle)->ForceColour( *m_sel_user, CurrentColour );

}
开发者ID:tizbac,项目名称:springlobby,代码行数:10,代码来源:battleroomlistctrl.cpp

示例11: wxLogDebugFunc

void ServerEvents::OnBattleInfoUpdated( int battleid )
{
    wxLogDebugFunc( _T("") );
    try
    {
        Battle& battle = m_serv.GetBattle( battleid );
		BattleEvents::GetBattleEventSender( BattleEvents::BattleInfoUpdate ).SendEvent( std::make_pair(&battle,wxString()) );
    }
    catch ( assert_exception ) {}
}
开发者ID:mallyvai,项目名称:springlobby,代码行数:10,代码来源:serverevents.cpp

示例12: wxLogDebugFunc

void SimpleServerEvents::OnBattleInfoUpdated( int /*battleid*/ )
{
    wxLogDebugFunc( _T("") );
    try
    {
//        Battle& battle = m_serv.GetBattle( battleid );
//        ui().OnBattleInfoUpdated( battle );
    }
    catch ( assert_exception ) {}
}
开发者ID:SpliFF,项目名称:springlobby,代码行数:10,代码来源:simpleserverevents.cpp

示例13: wxLogDebugFunc

TorrentWrapper::~TorrentWrapper()
{
    wxLogDebugFunc( wxEmptyString );
	m_info_download_thread.Wait();
	m_torr->pause();
	ClearFinishedTorrents();
	RemoveInvalidTorrents();
	/* the use of Settings seems to a problem (destruction order) therefore disabled until further notice
	//save torrents to resume
	std::vector<wxString> toResume;
	TorrenthandleInfoMap infomap = GetHandleInfoMap();
	TorrenthandleInfoMap::iterator it = infomap.begin();
	for ( ; it != infomap.end(); ++it )
	{
		PlasmaResourceInfo info = it->first;
		toResume.push_back( info.m_name );
	}
	std::vector<wxString> currentResumes = sett().GetTorrentListToResume();
	for ( std::vector<wxString>::const_iterator it = currentResumes.begin();
		it != currentResumes.end(); ++it )
	{
		toResume.push_back( *it );
	}
	//save new list
	sett().SetTorrentListToResume( toResume );
	*/

    #ifndef __WXMSW__
        try
        {
            m_torr->stop_upnp();
        }
        catch (std::exception& e)
        {
            wxLogError( TowxString( e.what() ) );
        }
        try
        {
            m_torr->stop_natpmp();
        }
        catch (std::exception& e)
        {
            wxLogError( TowxString( e.what() ) );
        }
        try
        {
            m_torr->stop_lsd();
        }
        catch (std::exception& e)
        {
            wxLogError( TowxString( e.what() ) );
        }
    #endif
    delete m_torr;
}
开发者ID:tvo,项目名称:springlobby,代码行数:55,代码来源:torrentwrapper.cpp

示例14: wxLogDebugFunc

void SinglePlayerTab::OnMapBrowse( wxCommandEvent& /*unused*/ )
{
	wxLogDebugFunc( wxEmptyString );
	const wxString mapname = mapSelectDialog();
	if ( !mapname.empty()) {
	        const int idx = m_map_pick->FindString( mapname, true /*case sensitive*/ );
		if ( idx != wxNOT_FOUND ) {
			SetMap( idx );
		}
	}
}
开发者ID:renemilk,项目名称:springlobby,代码行数:11,代码来源:singleplayertab.cpp


注:本文中的wxLogDebugFunc函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。