?? playerattrforupdate.cpp
字號:
#include "stdafx.h"
#include "PlayerAttrForUpdate.h"
#include "Player.h"
// 傍加, 撈加, 彌措 HP, MP 函拳矯 努扼俊 舅妨林扁 困秦 鞘夸茄 何盒撈促.
VOID PlayerAttrForUpdate::UpdateEx()
{
int iAttSpeedRatio = m_pPlayer->GetAttSpeedRatio();
int iMoveSpeedRatio = m_pPlayer->GetMoveSpeedRatio();
DWORD dwMaxHP = m_pPlayer->GetMaxHP();
DWORD dwMaxMP = m_pPlayer->GetMaxMP();
PlayerAttributes::Update();
if( iAttSpeedRatio != m_pPlayer->GetAttSpeedRatio() )
{
m_pPlayer->SendAttrChange( eATTR_ATTACK_SPEED, m_pPlayer->GetAttSpeedRatio() );
}
if( iMoveSpeedRatio != m_pPlayer->GetMoveSpeedRatio() )
{
m_pPlayer->SendAttrChange( eATTR_MOVE_SPEED, m_pPlayer->GetMoveSpeedRatio() );
}
if( dwMaxHP != m_pPlayer->GetMaxHP() )
{
m_pPlayer->SendAttrChange( eATTR_MAX_HP, m_pPlayer->GetMaxHP() );
}
if( dwMaxMP != m_pPlayer->GetMaxMP() )
{
m_pPlayer->SendAttrChange( eATTR_MAX_MP, m_pPlayer->GetMaxMP() );
}
}
VOID PlayerAttrForUpdate::SetOwner( SCPlayer* pPlayer )
{
PlayerAttributes::SetOwner( pPlayer );
m_pPlayer = (Player*)pPlayer;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -