2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
#include "Behavior.h"
|
|
|
|
|
|
|
|
class ForceMovementBehavior final : public Behavior
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Behavior* m_hitAction;
|
|
|
|
|
|
|
|
Behavior* m_hitEnemyAction;
|
|
|
|
|
|
|
|
Behavior* m_hitFactionAction;
|
2021-12-11 10:59:29 +00:00
|
|
|
|
|
|
|
float_t m_Duration;
|
|
|
|
float_t m_Forward;
|
|
|
|
float_t m_Left;
|
|
|
|
float_t m_Yaw;
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
/*
|
|
|
|
* Inherited
|
|
|
|
*/
|
|
|
|
|
|
|
|
explicit ForceMovementBehavior(const uint32_t behaviorId) : Behavior(behaviorId) {
|
|
|
|
}
|
|
|
|
|
2021-12-11 10:59:29 +00:00
|
|
|
void Calculate(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) override;
|
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
void Handle(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) override;
|
|
|
|
|
2021-12-11 10:59:29 +00:00
|
|
|
void SyncCalculation(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) override;
|
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
void Sync(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) override;
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
void Load() override;
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|