This commit is contained in:
aozhiwei 2023-04-20 13:44:58 +08:00
parent f62e991195
commit 8937986608
2 changed files with 52 additions and 5 deletions

View File

@ -32,27 +32,27 @@ void Guide::UpdateStep()
switch (curr_step_meta_->target()) {
case mt::MOVE_TARGET_GUIDE_STEP:
{
ProcMoveTarget();
}
break;
case mt::MOVE_TARGET_AND_PICKUP_GUIDE_STEP:
{
ProcMoveTargetAndPickup();
}
break;
case mt::KILL_ENEMY_GUIDE_STEP:
{
ProcKillEnemy();
}
break;
case mt::USE_SKILL_AND_KILL_ENEMY_GUIDE_STEP:
{
ProcUseSkillAndKillEnemy();
}
break;
case mt::USE_SKILL_GUIDE_STEP:
{
ProcUseSkill();
}
break;
default:
@ -62,3 +62,42 @@ void Guide::UpdateStep()
break;
}
}
void Guide::ProcMoveTarget()
{
owner_->room->xtimer.SetTimeoutEx
(1,
[this] (int event, const a8::Args* args)
{
if (a8::TIMER_EXEC_EVENT == event) {
}
},
&owner_->xtimer_attacher);
}
void Guide::ProcMoveTargetAndPickup()
{
}
void Guide::ProcKillEnemy()
{
}
void Guide::ProcUseSkillAndKillEnemy()
{
}
void Guide::ProcUseSkill()
{
}
void Guide::NextStep()
{
}

View File

@ -16,6 +16,14 @@ class Guide
void UpdateStep();
void ProcMoveTarget();
void ProcMoveTargetAndPickup();
void ProcKillEnemy();
void ProcUseSkillAndKillEnemy();
void ProcUseSkill();
void NextStep();
private:
Human* owner_ = nullptr;
int curr_step_idx_ = 0;