Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
MoveSplineInitArgs.h
Go to the documentation of this file.
1/*
2* This file is part of Project SkyFire https://www.projectskyfire.org.
3* See LICENSE.md file for Copyright information
4*/
5
6#ifndef SKYFIRESERVER_MOVESPLINEINIT_ARGS_H
7#define SKYFIRESERVER_MOVESPLINEINIT_ARGS_H
8
9#include "MoveSplineFlag.h"
10#include <G3D/Vector3.h>
11
12class Unit;
13
14namespace Movement
15{
16 typedef std::vector<Vector3> PointsArray;
17
19 {
20 struct {
21 float x, y, z;
22 } f;
24 float angle;
25
26 FacingInfo() : angle(0.0f) { f.x = 0.0f; f.y = 0.0f; f.z = 0.0f; }
27 };
28
30 {
31 MoveSplineInitArgs(size_t path_capacity = 16) : path_Idx_offset(0), velocity(0.f),
34 {
35 path.reserve(path_capacity);
36 }
37
42 float velocity;
44 float time_perc;
49
51 bool Validate(Unit* unit) const;
52
53 private:
54 bool _checkPathBounds() const;
55 };
56}
57
58#endif // SKYFIRESERVER_MOVESPLINEINIT_ARGS_H
std::int32_t int32
Definition Define.h:73
std::uint32_t uint32
Definition Define.h:77
std::uint64_t uint64
Definition Define.h:76
Definition Unit.h:1367
std::vector< Vector3 > PointsArray
bool Validate(Unit *unit) const
============================================================================================
MoveSplineInitArgs(size_t path_capacity=16)
struct Movement::FacingInfo::@351377220111011221135323375214233350203142103173 f