本文整理汇总了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_);
}
}
示例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;
//.........这里部分代码省略.........