diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 303ebce..29b878e 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -40,6 +40,36 @@ const int kReviveTimeAdd = 12; const int kSkinNum = 4; +void PlayerStats::IncWeaponTypeKills(int weapon_id, int val) +{ + +} + +void PlayerStats::IncWeaponTypeDamageOut(int weapon_id, int val) +{ + +} + +void PlayerStats::IncWeaponTypeObtainCount(int weapon_id, int val) +{ + +} + +void PlayerStats::IncWeaponSlotUseTimes(int weapon_id, int val) +{ + +} + +void PlayerStats::SetHeroSkillLv(int weapon_id, int skill_lv) +{ + +} + +void PlayerStats::SetHeroWeaponLv(int weapon_id, int weapon_lv) +{ + +} + Human::Human():Creature() { default_weapon.weapon_idx = 0; diff --git a/server/gameserver/human.h b/server/gameserver/human.h index 53b1cca..3b2faa9 100644 --- a/server/gameserver/human.h +++ b/server/gameserver/human.h @@ -22,6 +22,27 @@ struct HumanBehavior int total_destory_box_times = 0; }; +struct WeaponTypeStats +{ + int weapon_id = 0; + int kills = 0; + int damage_out = 0; + int obtain_count = 0; +}; + +struct WeaponSlotStats +{ + int slot = 0; + int use_times = 0; +}; + +struct HeroStats +{ + int hero_id = 0; + int skill_lv = 0; + int weapon_lv = 0; +}; + struct PlayerStats { int kills = 0; @@ -47,6 +68,10 @@ struct PlayerStats int ride_car_kills = 0; int max_hero_skill_lv = 0; + std::map weapon_type_stats; + std::map weapon_slot_stats; + std::map hero_stats; + int gold = 0; int score = 0; std::vector> items; @@ -63,6 +88,13 @@ struct PlayerStats int skill_times = 0; int dead_times = 0; + + void IncWeaponTypeKills(int weapon_id, int val); + void IncWeaponTypeDamageOut(int weapon_id, int val); + void IncWeaponTypeObtainCount(int weapon_id, int val); + void IncWeaponSlotUseTimes(int weapon_id, int val); + void SetHeroSkillLv(int weapon_id, int skill_lv); + void SetHeroWeaponLv(int weapon_id, int weapon_lv); }; struct xtimer_list;