2017-08-20 02:46:06 -03:00
|
|
|
#ifndef _CALCBATTLE_H
|
|
|
|
#define _CALCBATTLE_H
|
|
|
|
|
|
|
|
#include <src/servers/Server_Common/Common.h>
|
2017-08-20 19:27:06 -03:00
|
|
|
|
2017-08-20 02:46:06 -03:00
|
|
|
#include "Actor.h"
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
namespace Entity {
|
|
|
|
|
|
|
|
class CalcBattle
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2017-09-15 00:56:29 -03:00
|
|
|
static float calculateBaseStat( PlayerPtr pPlayer );
|
2017-08-20 19:20:37 -03:00
|
|
|
static uint32_t calculateMaxMp( PlayerPtr pPlayer );
|
|
|
|
static uint32_t calculateMaxHp( PlayerPtr pPlayer );
|
|
|
|
static uint32_t calculateHealValue( PlayerPtr pPlayer, uint32_t potency );
|
2017-08-20 02:46:06 -03:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|