#pragma once #ifdef _NA_007065_20140217_CHAOSZONE_GOLDRUSH class Player; struct GoldRushInfo; class GoldRushPlayerInfo { public: GoldRushPlayerInfo(Player* player) : player_(player), team_key_(kChaosZoneTeamNone), player_state_(kPlayerStateNone), goldrush_record_(NULL), goldrush_info_(NULL), series_kill_(0), max_series_kill_(0) {} ~GoldRushPlayerInfo() {} void Init(GoldRushRecord* const record); void Release() {} //ÀüÀû °ü·Ã.. void IncreasePlayTimes(); void IncreaseWinTimes(); void IncreaseDrawTimes(); void IncreaseLoseTimes(); void IncreaseDisTimes(); void DecreaseDisTimes(); void IncreaseKill(const WORD kill_point = 1); void IncreaseDeath(); void IncreaseAssistTimes(); // ºÎȰÁ¸ À̵¿ °ü·Ã ŸÀÌ¸Ó inline void SetMoveToSafeZoneTimer(DWORD interval) { move_to_safe_zone_timer_.SetTimer(interval); } inline bool IsExpiredMoveToSafeZone() { return move_to_safe_zone_timer_.IsExpiredManual(false); } // team_key °ü·Ã inline ChaosZoneTeam GetTeamKey() const { return team_key_;} inline void SetTeamKey(const ChaosZoneTeam team_key) { team_key_ = team_key;} // Ç÷¹ÀÌ¾î »óÅ °ü·Ã inline void SetPlayerState(BattleGroundPlayerState player_state) { player_state_ = player_state;} inline BattleGroundPlayerState GetPlayerState() const { return player_state_;} // ¿¬¼Óų¼ö inline WORD GetSeriesKill() { return series_kill_; } inline WORD GetMaxSeriesKill() { return max_series_kill_; } // °ñµåÆ÷ÀÎÆ® // gold_point¿Í gold_grade´Â PlayerInfo·Î °ü¸®ÇÏÁö¸¸, CharExtraInfo¿¡´Â Æ÷ÇÔµÇÁö ¾Ê´Â´Ù. // °ñµåÆ÷ÀÎÆ®°ª 'ȹµæ' void AddGoldPoint(const WORD gold); // °ñµåÆ÷ÀÎÆ®°ª '°­Á¦¼³Á¤' void SetGoldPoint(const WORD gold); WORD GetGoldPoint(); //ÃÑ ¼ÒÁöÇÑ Æ÷ÀÎÆ®¿¡¼­ ¸Å°³º¯¼ö ºñÀ²¸¸Å­ Æ÷ÀÎÆ®¸¦ ÀҴ´Ù. WORD LoseGoldPointRatio(const BYTE lose_ratio); // °ñµåµî±Þ void _AdjustGoldGrade(); const GOLDGRADE GetGoldGrade(); private: Player* player_; ChaosZoneTeam team_key_; BattleGroundPlayerState player_state_; // Ç÷¹ÀÌ¾î »óÅ util::Timer move_to_safe_zone_timer_; // ¾ÈÀüÁö´ë À̵¿ ŸÀÌ¸Ó GoldRushRecord* goldrush_record_; const GoldRushInfo* goldrush_info_; WORD series_kill_; //¿¬¼Óų¼ö WORD max_series_kill_; // ÃÖ´ë ¿¬¼Ó ų¼ö }; #endif //_NA_007065_20140217_CHAOSZONE_GOLDRUSH