#ifdef _NA_007065_20140217_CHAOSZONE_GOLDRUSH #include "World/ChaosZoneSystem/ChaosZoneBattleTeam.h" class GoldRush; class GoldRushPlayerInfo; struct BattleGroundInfo; class GoldRushTeam : public ChaosZoneBattleTeam { public: explicit GoldRushTeam(GoldRush* const goldrush) : goldrush_(goldrush), battle_ground_Info_(NULL), is_initialte_vote_(false) { initialte_vote_timer_.SetTimer(60 * 1000); } virtual ~GoldRushTeam() {} void Update(); void Start(); void AddMember(Player* const player); RC::eSTATUS_RESULT OnMoveToSafezone(Player* const player); void OnResult(const eBATTLEGROUND_RESULT result_type); //vote system bool IsInitialteTime(); bool OnInitiateVote(Player* initiate_player, Player* van_payer); void OnVote(CHARGUID char_guid, bool vote_result); bool CheckVoteResult(); void OnVoteResult(bool van_result); void OnVanPlayer(); void AllDeathMemberResurrectionAtSafezone(); // ÆÀÁ¤º¸ ä¿ö³Ö±â void GetTeamMemberInfo(OUT GOLDRUSH_TEAM_SCORE_INFO& team_info); // ȹµæ°ñµå¸¦ ÆÀ¿øµé¿¡°Ô ºÐ¹è // ÀûÇ÷¹À̾ Á×ÀÎ Ç÷¹À̾ ÀÖÀ»°æ¿ì (º¸³Ê½º °ñµåÆ÷ÀÎÆ®¸¦ ¹ÞÀ» Ç÷¹À̾î) WORD DistributeGoldPoint(WORD gold, const CHARGUID bonus_player = 0); // ÀüÀå ½ÃÀÛ ½Ã »ç¿ëµÇ´Â ÇÔ¼ö. °¢ ¸â¹öµéÀÇ °ñµå°ªÀ» ¸Å°³º¯¼ö°ª ¸¸Å­ ´õÇØÁØ´Ù void ObtainGoldPoint(WORD gold/*°³°³ÀÎÀÌ È¹µæÇÏ´Â °ñµå°ª*/); const WORD GetTotalTeamGoldPoint(); inline void SetBattleGroundInfo(const BattleGroundInfo* battle_ground_Info) { battle_ground_Info_ = battle_ground_Info; } inline bool GetIsInitiateVote() { return is_initialte_vote_; } private: void _OnReward(Player* const player, const eBATTLEGROUND_RESULT result_type); void _OnFinishResult(Player* const player, const eBATTLEGROUND_RESULT result_type); private: GoldRush* goldrush_; const BattleGroundInfo* battle_ground_Info_; // ÀüÀåÆÄ¼­ //goldrushinfo WORD team_gold_point_; //vote system bool is_initialte_vote_; TCHAR van_player_name_[MAX_CHARNAME_LENGTH]; PLAYER_HASH vote_player_hash_map_; // ÅõÇ¥¸¦ ÁøÇàÇÑ ¸â¹ö ¸®½ºÆ® util::Timer voting_timer_; // ÅõÇ¥ ÁøÇà ½Ã°£.. 30ÃÊ.. util::Timer initialte_vote_timer_; // ÅõÇ¥ ¹ßÀÇ °¡´É ½Ã°£. 1ºÐ.. }; #endif //_NA_007065_20140217_CHAOSZONE_GOLDRUSH