1
This commit is contained in:
parent
09f0a373ee
commit
e838f29fc0
@ -42,35 +42,33 @@ void SprintBuff::SprintMove()
|
||||
owner->SetAttackDir(owner->context_dir);
|
||||
owner->SetDisableMoveDirTimes(old_times);
|
||||
#ifdef DEBUG
|
||||
{
|
||||
owner->SendDebugMsg(a8::Format("xxxxxxxx move_dir:%d,%d attack_dir:%d,%d speed:%d",
|
||||
{
|
||||
owner->GetMoveDir().x,
|
||||
owner->GetMoveDir().y,
|
||||
owner->GetAttackDir().x,
|
||||
owner->GetAttackDir().y,
|
||||
owner->GetSpeed()
|
||||
}));
|
||||
owner->room->xtimer.SetIntervalEx
|
||||
(
|
||||
2,
|
||||
[this] (int event, const a8::Args* args)
|
||||
{
|
||||
if (a8::TIMER_EXEC_EVENT == event) {
|
||||
Human* hum = owner->AsHuman();
|
||||
hum->SendDebugMsg(a8::Format("xxxxxxxx move_dir:%d,%d attack_dir:%d,%d speed:%d",
|
||||
{
|
||||
hum->GetMoveDir().x,
|
||||
hum->GetMoveDir().y,
|
||||
hum->GetAttackDir().x,
|
||||
hum->GetAttackDir().y,
|
||||
hum->GetSpeed()
|
||||
}));
|
||||
}
|
||||
},
|
||||
&xtimer_attacher
|
||||
);
|
||||
}
|
||||
owner->SendDebugMsg(a8::Format("xxxxxxxx move_dir:%d,%d attack_dir:%d,%d speed:%d",
|
||||
{
|
||||
owner->GetMoveDir().x,
|
||||
owner->GetMoveDir().y,
|
||||
owner->GetAttackDir().x,
|
||||
owner->GetAttackDir().y,
|
||||
owner->GetSpeed()
|
||||
}));
|
||||
owner->room->xtimer.SetIntervalEx
|
||||
(
|
||||
2,
|
||||
[this] (int event, const a8::Args* args)
|
||||
{
|
||||
if (a8::TIMER_EXEC_EVENT == event) {
|
||||
Human* hum = owner->AsHuman();
|
||||
hum->SendDebugMsg(a8::Format("xxxxxxxx move_dir:%d,%d attack_dir:%d,%d speed:%d",
|
||||
{
|
||||
hum->GetMoveDir().x,
|
||||
hum->GetMoveDir().y,
|
||||
hum->GetAttackDir().x,
|
||||
hum->GetAttackDir().y,
|
||||
hum->GetSpeed()
|
||||
}));
|
||||
}
|
||||
},
|
||||
&xtimer_attacher
|
||||
);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user