本文整理汇总了C++中CMover::IsHero方法的典型用法代码示例。如果您正苦于以下问题:C++ CMover::IsHero方法的具体用法?C++ CMover::IsHero怎么用?C++ CMover::IsHero使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CMover
的用法示例。
在下文中一共展示了CMover::IsHero方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnDraw
void CWndPartyQuick::OnDraw( C2DRender* p2DRender )
{
// 파티 정보 출력
//Static control
int nMax = g_Party.m_nSizeofMember;
int i;
CRect rect;
SetActiveMember(nMax);
for(i=0; i<nMax; i++)
{
LPWNDCTRL lpWndCtrl = GetWndCtrl( StaticID[i] );
rect = lpWndCtrl->rect;
CMover* pObjMember = prj.GetUserByID( g_Party.m_aMember[i].m_uPlayerId );
CString strMember;
if(m_pFocusMember == pObjMember)
p2DRender->RenderFillRect( rect, 0x60ffff00 );
// 상태에 따라 색 변경
DWORD dwColor = 0xff000000;
u_long nLeadMember = g_Party.m_aMember[i].m_uPlayerId;
if( IsValidObj(pObjMember) )
{
if( pObjMember->GetHitPoint() == 0 )
dwColor = 0xffff0000; // 죽은놈
else if( ((FLOAT)pObjMember->GetHitPoint()) / ((FLOAT)pObjMember->GetMaxHitPoint()) <.1f )
dwColor = 0xffffff00; // HP 10% 이하인놈
if(g_Party.IsLeader(nLeadMember)) //Leader Color Set
{
dwColor = 0xff1fb72d; //굵게 해야함...
#if __VER >= 10 // __LEGEND
if(pObjMember->IsMaster())
strMember.Format( prj.GetText( TID_GAME_QUICK_MARK_MASTER ), pObjMember->GetLevel(), pObjMember->GetName() );
else if(pObjMember->IsHero())
#if __VER >= 15 // __HERO129_VER15 // 15차 히어로 레벨확장
strMember.Format( prj.GetText( TID_GAME_QUICK_MARK_HERO ), pObjMember->GetLevel(), pObjMember->GetName() );
#else // 15차 히어로 레벨확장
strMember.Format( prj.GetText( TID_GAME_QUICK_MARK_HERO_BEFORE ), pObjMember->GetName() );
#endif // 15차 히어로 레벨확장
else
strMember.Format( "%d. %s", pObjMember->GetLevel(), pObjMember->GetName() );
#else //__LEGEND
strMember.Format( "%d. %s", pObjMember->GetLevel(), pObjMember->GetName() );
#endif //__LEGEND
}
else
{
#if __VER >= 10 // __LEGEND
if(pObjMember->IsMaster())