1
This commit is contained in:
parent
823f51a8c8
commit
f3204a4bd2
@ -40,6 +40,36 @@
|
|||||||
const int kReviveTimeAdd = 12;
|
const int kReviveTimeAdd = 12;
|
||||||
const int kSkinNum = 4;
|
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()
|
Human::Human():Creature()
|
||||||
{
|
{
|
||||||
default_weapon.weapon_idx = 0;
|
default_weapon.weapon_idx = 0;
|
||||||
|
@ -22,6 +22,27 @@ struct HumanBehavior
|
|||||||
int total_destory_box_times = 0;
|
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
|
struct PlayerStats
|
||||||
{
|
{
|
||||||
int kills = 0;
|
int kills = 0;
|
||||||
@ -47,6 +68,10 @@ struct PlayerStats
|
|||||||
int ride_car_kills = 0;
|
int ride_car_kills = 0;
|
||||||
int max_hero_skill_lv = 0;
|
int max_hero_skill_lv = 0;
|
||||||
|
|
||||||
|
std::map<int, WeaponTypeStats> weapon_type_stats;
|
||||||
|
std::map<int, WeaponSlotStats> weapon_slot_stats;
|
||||||
|
std::map<int, HeroStats> hero_stats;
|
||||||
|
|
||||||
int gold = 0;
|
int gold = 0;
|
||||||
int score = 0;
|
int score = 0;
|
||||||
std::vector<std::pair<int, int>> items;
|
std::vector<std::pair<int, int>> items;
|
||||||
@ -63,6 +88,13 @@ struct PlayerStats
|
|||||||
int skill_times = 0;
|
int skill_times = 0;
|
||||||
|
|
||||||
int dead_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;
|
struct xtimer_list;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user