44 lines
714 B
C++
44 lines
714 B
C++
|
|
|
|
#ifndef _ArenaRankInfo_h_
|
|
#define _ArenaRankInfo_h_
|
|
|
|
//#include <string>
|
|
#include "ArenaUtility.h"
|
|
|
|
class KUIWnd;
|
|
|
|
/*
|
|
아레나 랭크 정보를 담은 구조체
|
|
*/
|
|
struct sArenaRankInfo
|
|
{
|
|
struct sRankInterval
|
|
{
|
|
void set(int beginLevel, int endLevel)
|
|
{
|
|
m_beginLevel = beginLevel;
|
|
m_endLevel = endLevel;
|
|
}
|
|
bool isIn(int level) const
|
|
{
|
|
return m_beginLevel <= level && m_endLevel >= level;
|
|
}
|
|
int m_beginLevel;
|
|
int m_endLevel;
|
|
};
|
|
|
|
sArenaRankInfo();
|
|
void setRank(KUIWnd* wnd);
|
|
/// @return : sArenaUtility::RANK
|
|
int getRank() const;
|
|
|
|
private:
|
|
void getInfo(std::string& iconName, std::string& tooltip);
|
|
|
|
private:
|
|
sRankInterval m_rankInterval[sArenaUtility::RANK_TOTAL];
|
|
};
|
|
|
|
#endif
|