56 lines
907 B
C++
56 lines
907 B
C++
|
|
|
|
#pragma once
|
|
|
|
//#include <string>
|
|
//#include <vector>
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
/// Player Level
|
|
class SExpDB
|
|
{
|
|
public:
|
|
SExpDB();
|
|
~SExpDB();
|
|
|
|
__int64 GetNeedExp( int nLevel );
|
|
__int64 GetNeedJp( int nLevel, int nCha );
|
|
|
|
protected:
|
|
void Init();
|
|
void Destroy();
|
|
void Load();
|
|
|
|
std::vector< struct _EXP_TABLE* > m_vExpList;
|
|
|
|
private:
|
|
|
|
public:
|
|
static SExpDB* m_pThis;
|
|
};
|
|
|
|
SExpDB & GetExpDB();
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
/// Summon Level
|
|
class SSummonExpDB
|
|
{
|
|
public:
|
|
SSummonExpDB();
|
|
~SSummonExpDB();
|
|
|
|
__int64 GetNeedExp( int nLevel, int nGrow_Type );
|
|
__int64 GetLevelByExp( __int64 nExp ); // 2011.03.10 - servantes
|
|
|
|
protected:
|
|
void Init();
|
|
void Destroy();
|
|
void Load();
|
|
|
|
std::vector< struct _SUMMON_EXP_TABLE* > m_vExpList;
|
|
|
|
private:
|
|
};
|
|
|
|
SSummonExpDB & GetSummonExpDB(); |