📄 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;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -