#pragma once #ifdef _NA_003033_20110831_DICECAST_ITEM_ROUTING #include "InterfaceManager.h" #include "../PartyLib/PartyDefine.h" const DWORD DICE_DRAWING_TIME = 5000; // ÁÖ»çÀ§°¡ º¸¿©Áö´Â ½Ã°£ (¸ØÃçÀÖ´Â ½Ã°£ Æ÷ÇÔ) const DWORD DICE_ANIMATION_TIME = 1000; // ÁÖ»çÀ§°¡ ±¼·¯°¡´Â ½Ã°£ class DiceCastManager { // 1~100 °ªÀ» ÁÖ»çÀ§ ¼ýÀÚ·Î º¯È¯(1~6) enum DICE_NUMBER_RANGE { DICE_NUMBER_ONE = 20, DICE_NUMBER_TWO = 40, DICE_NUMBER_THREE = 60, DICE_NUMBER_FOUR = 75, DICE_NUMBER_FIVE = 89, DICE_NUMBER_SIX = 99, }; public: DiceCastManager(InterfaceManager* interface_manager) : interface_manager_(interface_manager), draw_start_animation_tick_(0), is_start_animation_(false), high_number_player_key_(0) { ZeroMemory(dice_draw_info_, sizeof(dice_draw_info_)); ZeroMemory(output_message_, sizeof(output_message_)); } ~DiceCastManager() {} int GetDiceNumberToValue(WORD number); BYTE GetDiceNumber(DWORD user_key); void SetDiceDrawInfo(_DICECAST_RESULT* dice_draw_info, int player_count); DWORD GetAnimationTick(); bool IsDiceDraw(); bool IsDiceDraw(DWORD user_key); void SetDiceDrawOff(); void SetCenterMessage(TCHAR *center_message); DWORD high_number_player_key() { return high_number_player_key_; } void set_high_number_player_key(DWORD player_key) { high_number_player_key_ = player_key; } bool is_start_animation() { return is_start_animation_; } private: InterfaceManager* interface_manager_; _DICECAST_RESULT dice_draw_info_[MAX_PARTYMEMBER_NUM]; // 2011.09.21 °á°ú ÆÐŶ ¹Þ°í 1ÃÊ ¾Ö´Ï¸ÞÀ̼ÇÀÌ ¾î»öÇÏÁö ¾Ê¾Æ °øÈ¸Àü »èÁ¦ / ±âȹÆÀ ±èÀåÇö¾¾¿Í ÇùÀÇ ³»¿ë //bool is_draw_; //ÁÖ»çÀ§ °øÈ¸Àü º¸ÀÏÁö bool is_start_animation_; // ÁÖ»çÀ§°¡ ¿òÁ÷ÀÌ´ÂÁö DWORD draw_start_animation_tick_; DWORD high_number_player_key_; //°¡Àå ³ôÀº ¼ö°¡ ³ª¿Â Ç÷¹À̾î TCHAR output_message_[INTERFACE_STRING_LENGTH]; // ¼¾ÅÍ¿¡ Ãâ·ÂÇÒ ¸Þ¼¼Áö }; #endif //_NA_003033_20110831_DICECAST_ITEM_ROUTING