#ifndef __HEADER_VNUM_HELPER__ #define __HEADER_VNUM_HELPER__ /** ÀÌ¹Ì Á¸ÀçÇϰųª ¾ÕÀ¸·Î Ãß°¡µÉ ¾ÆÀÌÅÛ, ¸÷ µîÀ» ¼Ò½º¿¡¼­ ½Äº°ÇÒ ¶§ ÇöÀç´Â ¸ðµÎ ½Äº°ÀÚ(¼ýÀÚ=VNum)¸¦ ÇϵåÄÚµùÇÏ´Â ¹æ½ÄÀ¸·Î µÇ¾îÀ־ °¡µ¶¼ºÀÌ ¸Å¿ì ¶³¾îÁö´Âµ¥ ¾ÕÀ¸·Î´Â ¼Ò½º¸¸ ºÁµµ ¾î¶² ¾ÆÀÌÅÛ(ȤÀº ¸÷)ÀÎÁö ¾Ë ¼ö ÀÖ°Ô ÇÏÀÚ´Â ½Âö´ÔÀÇ Á¦¾ÈÀ¸·Î Ãß°¡. * ÀÌ ÆÄÀÏÀº º¯°æÀÌ ÀæÀ»°ÍÀ¸·Î ¿¹»óµÇ´Âµ¥ PCH¿¡ ³ÖÀ¸¸é ¹Ù²ð ¶§¸¶´Ù Àüü ÄÄÆÄÀÏ ÇؾßÇÏ´Ï ÀÏ´ÜÀº ÇÊ¿äÇÑ cppÆÄÀÏ¿¡¼­ include Çؼ­ ¾²µµ·Ï ÇßÀ½. * cpp¿¡¼­ ±¸ÇöÇϸé ÄÄÆÄÀÏ ~ ¸µÅ©ÇؾßÇÏ´Ï ±×³É common¿¡ Çì´õ¸¸ ³Ö¾úÀ½. (game, dbÇÁ·ÎÁ§Æ® µÑ ´Ù »ç¿ë ¿¹Á¤) @date 2011. 8. 29. */ class CItemVnumHelper { public: /// µ¶ÀÏ DVD¿ë ºÒ»çÁ¶ ¼Òȯ±Ç static const bool IsPhoenix(DWORD vnum) { return 53001 == vnum; } // NOTE: ºÒ»çÁ¶ ¼Òȯ ¾ÆÀÌÅÛÀº 53001 ÀÌÁö¸¸ mob-vnumÀº 34001 ÀÔ´Ï´Ù. /// ¶ó¸¶´Ü À̺¥Æ® Ãʽ´ÞÀÇ ¹ÝÁö (¿ø·¡´Â ¶ó¸¶´Ü À̺¥Æ®¿ë Ư¼ö ¾ÆÀÌÅÛÀ̾úÀ¸³ª ¾ÕÀ¸·Î ¿©·¯ ¹æÇâÀ¸·Î ÀçÈ°¿ëÇؼ­ °è¼Ó ¾´´Ù°í ÇÔ) static const bool IsRamadanMoonRing(DWORD vnum) { return 71135 == vnum; } /// ÇÒ·ÎÀ© »çÅÁ (½ºÆåÀº Ãʽ´ÞÀÇ ¹ÝÁö¿Í µ¿ÀÏ) static const bool IsHalloweenCandy(DWORD vnum) { return 71136 == vnum; } /// Å©¸®½º¸¶½º ÇູÀÇ ¹ÝÁö static const bool IsHappinessRing(DWORD vnum) { return 71143 == vnum; } /// ¹ß·»Å¸ÀÎ »ç¶ûÀÇ ÆÒ´øÆ® static const bool IsLovePendant(DWORD vnum) { return 71145 == vnum; } }; class CMobVnumHelper { public: /// µ¶ÀÏ DVD¿ë ºÒ»çÁ¶ ¸÷ ¹øÈ£ static bool IsPhoenix(DWORD vnum) { return 34001 == vnum; } static bool IsIcePhoenix(DWORD vnum) { return 34003 == vnum; } /// PetSystemÀÌ °ü¸®ÇÏ´Â ÆêÀΰ¡? static bool IsPetUsingPetSystem(DWORD vnum) { return (IsPhoenix(vnum) || IsReindeerYoung(vnum)) || IsIcePhoenix(vnum); } /// 2011³â Å©¸®½º¸¶½º À̺¥Æ®¿ë Æê (¾Æ±â ¼ø·Ï) static bool IsReindeerYoung(DWORD vnum) { return 34002 == vnum; } /// ¶ó¸¶´Ü À̺¥Æ® º¸»ó¿ë È渶(20119) .. ÇÒ·ÎÀ© À̺¥Æ®¿ë ¶ó¸¶´Ü È渶 Ŭ·Ð(½ºÆåÀº °°À½, 20219) static bool IsRamadanBlackHorse(DWORD vnum) { return 20119 == vnum || 20219 == vnum || 22022 == vnum; } }; class CVnumHelper { }; #endif //__HEADER_VNUM_HELPER__