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


C++ CGuild::IsAuthority方法代码示例

本文整理汇总了C++中CGuild::IsAuthority方法的典型用法代码示例。如果您正苦于以下问题:C++ CGuild::IsAuthority方法的具体用法?C++ CGuild::IsAuthority怎么用?C++ CGuild::IsAuthority使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CGuild的用法示例。


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

示例1: _test_func

void _test_func( std::vector< string >& arg )
{
    BOOL bAuthority = FALSE;
    CGuild* pGuild = g_pPlayer->GetGuild( );
    if( pGuild )
        bAuthority = pGuild->IsAuthority( g_pPlayer->m_idPlayer, PF_GUILDHOUSE_UPKEEP );

    if( !bAuthority )		//유지비 권한이 없으면
    {
        g_WndMng.PutString( GETTEXT( TID_GAME_GUILDHOUSE_TAX_LEVEL ) );
        return;
    }

    if( !g_WndMng.m_pWndUpkeep )
    {
        g_WndMng.m_pWndUpkeep = new CWndGHUpkeep;
        g_WndMng.m_pWndUpkeep->Initialize(&g_WndMng, APP_CONFIRM_BUY_);

    }
}
开发者ID:KerwinMa,项目名称:AerothFlyffSource,代码行数:20,代码来源:ConsoleFunc.cpp

示例2: OnChildNotify

BOOL CWndGHMainMenu::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult )
{
	switch( nID )
	{
	case WIDC_BTN_SETUPPOWER:	//권한
		{
			CWndGuild* pWnd = (CWndGuild*)g_WndMng.GetApplet( APP_GUILD );
			if( pWnd )	
				pWnd->Destroy( ); 
			else		
			{
				g_WndMng.CreateApplet( APP_GUILD ); 
				pWnd = (CWndGuild*)g_WndMng.GetApplet( APP_GUILD );
				assert( pWnd );

				pWnd->SetCurTab( 4 ); //권한 tab으로 !
			}
		}
		
		break;	

	case WIDC_BTN_FURNITURE:	//가구창 		
		{
			CWndGuildHousing* pWnd = (CWndGuildHousing*)g_WndMng.GetApplet( APP_GH_FURNITURE_STORAGE );
			if( pWnd )	
			{
				if( pWnd->IsSection( CWndGuildHousing::GS_FURNITURE ) )
					pWnd->Destroy( ); 
				else 
				if( pWnd->IsSection( CWndGuildHousing::GS_TELEPORTER ) )			//텔레포터랑 같은 윈도를 쓰기때문에 텔레포터창 죽이고 가구창 열게함.
					pWnd->InitBySection( CWndGuildHousing::GS_FURNITURE );
				
			}
			else		
			{ 
				g_WndMng.CreateApplet( APP_GH_FURNITURE_STORAGE ); 
				CWndGuildHousing* pWnd = (CWndGuildHousing*)g_WndMng.GetApplet( APP_GH_FURNITURE_STORAGE );
				assert( pWnd );

				pWnd->InitBySection( CWndGuildHousing::GS_FURNITURE );

			}
		}
		break;

	case WIDC_BTN_STORAGE:		//창고		
		{
 			if( g_WndMng.m_pWndGuildBank )	
			{
				g_DPlay.SendCloseGuildBankWnd(); 
				g_WndMng.m_pWndGuildBank->Destroy( );
				g_WndMng.m_pWndGuildBank = NULL;
			}
			else
				g_DPlay.SendOpenGuildBankWnd();

			break;
		}

		break;	

	case WIDC_BTN_TELEPORTER:	//텔레포터 
		{
			CWndGuildHousing* pWnd = (CWndGuildHousing*)g_WndMng.GetApplet( APP_GH_FURNITURE_STORAGE );
			if( pWnd ) 
			{
				if( pWnd->IsSection( CWndGuildHousing::GS_TELEPORTER ) )
					pWnd->Destroy( ); 
				else
				if( pWnd->IsSection( CWndGuildHousing::GS_FURNITURE ) )
					pWnd->InitBySection( CWndGuildHousing::GS_TELEPORTER );
			}
			else				
			{
				g_WndMng.CreateApplet( APP_GH_FURNITURE_STORAGE ); 
				pWnd = (CWndGuildHousing*)g_WndMng.GetApplet( APP_GH_FURNITURE_STORAGE );
				assert( pWnd );

				pWnd->InitBySection( CWndGuildHousing::GS_TELEPORTER );
			}
		}
		break;

	case WIDC_BTN_UPKEEP:		//유지비 
		{
			BOOL bAuthority = FALSE;
			CGuild* pGuild = g_pPlayer->GetGuild( );
			if( pGuild )
				bAuthority = pGuild->IsAuthority( g_pPlayer->m_idPlayer, PF_GUILDHOUSE_UPKEEP );

			if( !bAuthority )		//유지비 권한이 없으면 
			{
				g_WndMng.PutString( GETTEXT( TID_GAME_GUILDHOUSE_TAX_LEVEL ) );
				break;
			}
	

			if( !g_WndMng.m_pWndUpkeep )
			{
				g_WndMng.m_pWndUpkeep = new CWndGHUpkeep;
//.........这里部分代码省略.........
开发者ID:iceberry,项目名称:flyffsf,代码行数:101,代码来源:WndGuildHouse.cpp


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