1
This commit is contained in:
parent
2281bf1d80
commit
7b8c2f71d7
@ -701,22 +701,24 @@ bool HeroAgent::InTargetShotRange()
|
||||
|
||||
void HeroAgent::ResetShotTimes()
|
||||
{
|
||||
|
||||
shot_times_ = 0;
|
||||
last_shot_frameno_ = owner_->room->GetFrameNo();
|
||||
}
|
||||
|
||||
void HeroAgent::ResetUseSkillTimes()
|
||||
{
|
||||
|
||||
useskill_times_ = 0;
|
||||
last_useskill_frameno_ = owner_->room->GetFrameNo();
|
||||
}
|
||||
|
||||
int HeroAgent::GetShotTimes()
|
||||
{
|
||||
return 0;
|
||||
return shot_times_;
|
||||
}
|
||||
|
||||
int HeroAgent::GetUseSkillTimes()
|
||||
{
|
||||
return 0;
|
||||
return useskill_times_;
|
||||
}
|
||||
|
||||
float HeroAgent::GetTargetManhattanDistance()
|
||||
|
@ -133,6 +133,8 @@ protected:
|
||||
private:
|
||||
bool bullet_trace_mode_ = false;
|
||||
long long flags_ = 0;
|
||||
int shot_times_ = 0;
|
||||
int useskill_times_ = 0;
|
||||
long long last_shot_frameno_ = 0;
|
||||
long long last_useskill_frameno_ = 0;
|
||||
std::map<int, int> dyn_hash_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user