2015-09-30 02:56:11 +02:00
|
|
|
#ifndef _ENTITY_VEHICLE_HPP_
|
|
|
|
#define _ENTITY_VEHICLE_HPP_
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
#include "Base/Shared.hpp"
|
2015-09-30 02:56:11 +02:00
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
namespace SqMod {
|
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Circular locks employed by the vehicle manager.
|
|
|
|
*/
|
|
|
|
enum VehicleCircularLocks
|
|
|
|
{
|
2016-08-18 13:38:00 +02:00
|
|
|
VEHICLECL_EMIT_VEHICLE_OPTION = (1 << 0),
|
2016-08-18 13:45:12 +02:00
|
|
|
VEHICLECL_EMIT_VEHICLE_WORLD = (2 << 0),
|
2016-08-18 13:51:55 +02:00
|
|
|
VEHICLECL_EMIT_VEHICLE_IMMUNITY = (3 << 0),
|
2016-08-18 13:56:38 +02:00
|
|
|
VEHICLECL_EMIT_VEHICLE_PARTSTATUS = (4 << 0),
|
2016-08-20 21:42:54 +02:00
|
|
|
VEHICLECL_EMIT_VEHICLE_TYRESTATUS = (5 << 0),
|
2016-08-18 14:13:33 +02:00
|
|
|
VEHICLECL_EMIT_VEHICLE_DAMAGEDATA = (6 << 0),
|
2016-08-18 14:21:50 +02:00
|
|
|
VEHICLECL_EMIT_VEHICLE_RADIO = (7 << 0),
|
|
|
|
VEHICLECL_EMIT_VEHICLE_HANDLINGRULE = (8 << 0)
|
2016-05-22 05:20:38 +02:00
|
|
|
};
|
|
|
|
|
2015-09-30 02:56:11 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
2016-03-10 04:57:13 +01:00
|
|
|
* Manages a single vehicle entity.
|
2015-09-30 02:56:11 +02:00
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
class CVehicle
|
2015-09-30 02:56:11 +02:00
|
|
|
{
|
|
|
|
// --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
friend class Core;
|
|
|
|
|
|
|
|
private:
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
// --------------------------------------------------------------------------------------------
|
2016-05-22 05:20:38 +02:00
|
|
|
static Vector2 s_Vector2;
|
2015-10-29 21:56:07 +01:00
|
|
|
static Vector3 s_Vector3;
|
|
|
|
static Quaternion s_Quaternion;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* Identifier of the managed entity.
|
2015-11-01 00:33:12 +01:00
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 m_ID;
|
2015-11-01 00:33:12 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-03-10 04:57:13 +01:00
|
|
|
* User tag associated with this instance.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
String m_Tag;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* User data associated with this instance.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Object m_Data;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Prevent events from triggering themselves.
|
|
|
|
*/
|
|
|
|
Uint32 m_CircularLocks;
|
|
|
|
|
2015-10-29 21:56:07 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* Base constructor.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
CVehicle(Int32 id);
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
public:
|
|
|
|
|
2015-10-29 21:56:07 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-03-10 04:57:13 +01:00
|
|
|
* Maximum possible number that could represent an identifier for this entity type.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-03-10 04:57:13 +01:00
|
|
|
static const Int32 Max;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-03-10 04:57:13 +01:00
|
|
|
* Copy constructor. (disabled)
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-03-10 04:57:13 +01:00
|
|
|
CVehicle(const CVehicle &) = delete;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Move constructor. (disabled)
|
|
|
|
*/
|
|
|
|
CVehicle(CVehicle &&) = delete;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* Destructor.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
~CVehicle();
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Copy assignment operator. (disabled)
|
|
|
|
*/
|
|
|
|
CVehicle & operator = (const CVehicle &) = delete;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Move assignment operator. (disabled)
|
|
|
|
*/
|
|
|
|
CVehicle & operator = (CVehicle &&) = delete;
|
|
|
|
|
2015-10-29 21:56:07 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* See whether this instance manages a valid entity.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-03-10 04:57:13 +01:00
|
|
|
void Validate() const
|
2016-02-20 23:25:00 +01:00
|
|
|
{
|
2016-03-10 04:57:13 +01:00
|
|
|
if (INVALID_ENTITY(m_ID))
|
2016-03-12 21:51:44 +01:00
|
|
|
{
|
2016-03-21 21:37:58 +01:00
|
|
|
STHROWF("Invalid vehicle reference [%s]", m_Tag.c_str());
|
2016-03-12 21:51:44 +01:00
|
|
|
}
|
2016-02-20 23:25:00 +01:00
|
|
|
}
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* Used by the script engine to compare two instances of this type.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 Cmp(const CVehicle & o) const;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* Used by the script engine to convert an instance of this type to a string.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-03-10 04:57:13 +01:00
|
|
|
const String & ToString() const;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-03-10 04:57:13 +01:00
|
|
|
* Used by the script engine to retrieve the name from instances of this type.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-03-10 04:57:13 +01:00
|
|
|
static SQInteger Typename(HSQUIRRELVM vm);
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-08-07 00:54:33 +02:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the associated null entity instance.
|
|
|
|
*/
|
|
|
|
static SQInteger SqGetNull(HSQUIRRELVM vm);
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the associated null entity instance.
|
|
|
|
*/
|
|
|
|
static Object & GetNull();
|
|
|
|
|
2015-10-29 21:56:07 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-03-10 04:57:13 +01:00
|
|
|
* Retrieve the identifier of the entity managed by this instance.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-03-10 04:57:13 +01:00
|
|
|
Int32 GetID() const
|
|
|
|
{
|
|
|
|
return m_ID;
|
|
|
|
}
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* Check whether this instance manages a valid entity.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-03-10 04:57:13 +01:00
|
|
|
bool IsActive() const
|
|
|
|
{
|
|
|
|
return VALID_ENTITY(m_ID);
|
|
|
|
}
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* Retrieve the associated user tag.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-03-10 04:57:13 +01:00
|
|
|
const String & GetTag() const;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* Modify the associated user tag.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetTag(CSStr tag);
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* Retrieve the associated user data.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Object & GetData();
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* Modify the associated user data.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetData(Object & data);
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Destroy the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
bool Destroy()
|
|
|
|
{
|
|
|
|
return Destroy(0, NullObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Destroy the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
bool Destroy(Int32 header)
|
|
|
|
{
|
|
|
|
return Destroy(header, NullObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Destroy the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
bool Destroy(Int32 header, Object & payload);
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Bind to an event supported by this entity type.
|
|
|
|
*/
|
|
|
|
void BindEvent(Int32 evid, Object & env, Function & func) const;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-07-26 23:13:50 +02:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Emit a custom event for the managed entity
|
|
|
|
*/
|
|
|
|
void CustomEvent(Int32 header, Object & payload) const;
|
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* See if the managed vehicle entity is streamed for the specified player.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
bool IsStreamedFor(CPlayer & player) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the current option value of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
bool GetOption(Int32 option_id) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the current option value of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetOption(Int32 option_id, bool toggle);
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the current option value of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetOptionEx(Int32 option_id, bool toggle, Int32 header, Object & payload);
|
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the synchronization source of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetSyncSource() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the synchronization type of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetSyncType() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the world in which the managed vehicle entity exists.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetWorld() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the world in which the managed vehicle entity exists.
|
|
|
|
*/
|
2016-08-18 13:38:00 +02:00
|
|
|
void SetWorld(Int32 world);
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the vehicle model of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetModel() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the slot occupant from the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Object & GetOccupant(Int32 slot) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the slot occupant identifier from the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetOccupantID(Int32 slot) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Respawn the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void Respawn() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the immunity flags of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetImmunity() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the immunity flags of the managed vehicle entity.
|
|
|
|
*/
|
2016-08-18 13:45:12 +02:00
|
|
|
void SetImmunity(Int32 flags);
|
2016-03-10 04:57:13 +01:00
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Explode the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void Explode() const;
|
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* See whether the managed vehicle entity is wrecked.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
bool IsWrecked() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the position of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
const Vector3 & GetPosition() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the position of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetPosition(const Vector3 & pos) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the position of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetPositionEx(const Vector3 & pos, bool empty) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the position of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetPositionEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the position of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetPositionEx(Float32 x, Float32 y, Float32 z, bool empty) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the rotation of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
const Quaternion & GetRotation() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the rotation of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
void SetRotation(const Quaternion & rot) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the rotation of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetRotationEx(Float32 x, Float32 y, Float32 z, Float32 w) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the euler rotation of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
const Vector3 & GetRotationEuler() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the euler rotation of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
void SetRotationEuler(const Vector3 & rot) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the euler rotation of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetRotationEulerEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the speed of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
const Vector3 & GetSpeed() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the speed of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
void SetSpeed(const Vector3 & vel) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetSpeedEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the speed of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
void AddSpeed(const Vector3 & vel) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void AddSpeedEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the relative speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
const Vector3 & GetRelativeSpeed() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetRelativeSpeed(const Vector3 & vel) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetRelativeSpeedEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void AddRelativeSpeed(const Vector3 & vel) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void AddRelativeSpeedEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
const Vector3 & GetTurnSpeed() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
void SetTurnSpeed(const Vector3 & vel) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetTurnSpeedEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
void AddTurnSpeed(const Vector3 & vel) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void AddTurnSpeedEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the relative turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
const Vector3 & GetRelativeTurnSpeed() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetRelativeTurnSpeed(const Vector3 & vel) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetRelativeTurnSpeedEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void AddRelativeTurnSpeed(const Vector3 & vel) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void AddRelativeTurnSpeedEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the spawn position of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
const Vector3 & GetSpawnPosition() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the spawn position of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetSpawnPosition(const Vector3 & pos) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the spawn position of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetSpawnPositionEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the spawn rotation of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
const Quaternion & GetSpawnRotation() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the spawn rotation of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
void SetSpawnRotation(const Quaternion & rot) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the spawn rotation of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetSpawnRotationEx(Float32 x, Float32 y, Float32 z, Float32 w) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the euler spawn rotation of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
const Vector3 & GetSpawnRotationEuler() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the euler spawn rotation of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
void SetSpawnRotationEuler(const Vector3 & rot) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the euler spawn rotation of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetSpawnRotationEulerEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the respawn timer of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Uint32 GetIdleRespawnTimer() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the respawn timer of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetIdleRespawnTimer(Uint32 millis) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the health of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Float32 GetHealth() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the health of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetHealth(Float32 amount) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
2016-07-13 00:47:36 +02:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Fix the damage and restore health for the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void Fix() const;
|
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the primary color of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetPrimaryColor() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the primary color of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetPrimaryColor(Int32 col) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the secondary color of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetSecondaryColor() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the secondary color of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetSecondaryColor(Int32 col) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the primary and secondary colors of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetColors(Int32 primary, Int32 secondary) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the part status of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetPartStatus(Int32 part) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the part status of the managed vehicle entity.
|
|
|
|
*/
|
2016-08-18 13:51:55 +02:00
|
|
|
void SetPartStatus(Int32 part, Int32 status);
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-08-20 21:42:54 +02:00
|
|
|
* Retrieve the tyre status of the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2016-08-20 21:42:54 +02:00
|
|
|
Int32 GetTyreStatus(Int32 tyre) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-08-20 21:42:54 +02:00
|
|
|
* Modify the tyre status of the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2016-08-20 21:42:54 +02:00
|
|
|
void SetTyreStatus(Int32 tyre, Int32 status);
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the damage data of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Uint32 GetDamageData() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the damage data of the managed vehicle entity.
|
|
|
|
*/
|
2016-08-18 14:06:03 +02:00
|
|
|
void SetDamageData(Uint32 data);
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the radio of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetRadio() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the radio of the managed vehicle entity.
|
|
|
|
*/
|
2016-08-18 14:13:33 +02:00
|
|
|
void SetRadio(Int32 radio);
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-05-22 05:20:38 +02:00
|
|
|
* Retrieve the turret rotation of the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
const Vector2 & GetTurretRotation() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-05-22 05:20:38 +02:00
|
|
|
* Retrieve the horizontal turret rotation of the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetHorizontalTurretRotation() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-05-22 05:20:38 +02:00
|
|
|
* Retrieve the vertical turret rotation of the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetVerticalTurretRotation() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-05-22 05:20:38 +02:00
|
|
|
* See whether the specified handling ruleexists in the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
bool ExistsHandlingRule(Int32 rule) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-05-22 05:20:38 +02:00
|
|
|
* Retrieve the handling data of the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetHandlingRule(Int32 rule) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-05-22 05:20:38 +02:00
|
|
|
* Modify the handling data of the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2016-08-18 14:21:50 +02:00
|
|
|
void SetHandlingRule(Int32 rule, Float32 data);
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-05-22 05:20:38 +02:00
|
|
|
* Reset the specified handling rule for the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2016-08-18 14:21:50 +02:00
|
|
|
void ResetHandlingRule(Int32 rule);
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-05-22 05:20:38 +02:00
|
|
|
* Reset all the handling rules for the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void ResetHandlings() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Embark the specified player entity into the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
bool Embark(CPlayer & player) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Embark the specified player entity into the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
bool Embark(CPlayer & player, Int32 slot, bool allocate, bool warp) const;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-06-08 15:53:16 +02:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the amount of tracked position changes for the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
SQInteger GetTrackPosition() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the amount of tracked position changes for the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetTrackPosition(SQInteger num) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the amount of tracked rotation changes for the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
SQInteger GetTrackRotation() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the amount of tracked rotation changes for the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetTrackRotation(SQInteger num) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the last known primary color for the managed vehicle entity.
|
|
|
|
*/
|
2016-08-21 17:07:35 +02:00
|
|
|
Int32 GetLastPrimaryColor() const;
|
2016-06-08 15:53:16 +02:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the last known secondary color for the managed vehicle entity.
|
|
|
|
*/
|
2016-08-21 17:07:35 +02:00
|
|
|
Int32 GetLastSecondaryColor() const;
|
2016-06-08 15:53:16 +02:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the last known health for the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetLastHealth() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the last known position for the managed player entity.
|
|
|
|
*/
|
|
|
|
const Vector3 & GetLastPosition() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the last known rotation for the managed player entity.
|
|
|
|
*/
|
|
|
|
const Quaternion & GetLastRotation() const;
|
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the position on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetPositionX() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the position on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetPositionY() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the position on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetPositionZ() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the position on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetPositionX(Float32 x) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the position on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetPositionY(Float32 y) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the position on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetPositionZ(Float32 z) const;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the rotation on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetRotationX() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the rotation on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetRotationY() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the rotation on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetRotationZ() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the rotation amount of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetRotationW() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the rotation on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetRotationX(Float32 x) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the rotation on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetRotationY(Float32 y) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the rotation on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetRotationZ(Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the rotation amount of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetRotationW(Float32 w) const;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the euler rotation on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetEulerRotationX() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the euler rotation on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetEulerRotationY() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the euler rotation on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetEulerRotationZ() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the euler rotation on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetEulerRotationX(Float32 x) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the euler rotation on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetEulerRotationY(Float32 y) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the euler rotation on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetEulerRotationZ(Float32 z) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the velocity on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetSpeedX() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the velocity on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetSpeedY() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the velocity on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetSpeedZ() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the velocity on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetSpeedX(Float32 x) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the velocity on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetSpeedY(Float32 y) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the velocity on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetSpeedZ(Float32 z) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the relative velocity on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetRelativeSpeedX() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the relative velocity on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetRelativeSpeedY() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the relative velocity on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetRelativeSpeedZ() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative velocity on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetRelativeSpeedX(Float32 x) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative velocity on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetRelativeSpeedY(Float32 y) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative velocity on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetRelativeSpeedZ(Float32 z) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the turn velocity on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetTurnSpeedX() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the turn velocity on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetTurnSpeedY() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the turn velocity on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetTurnSpeedZ() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the turn velocity on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetTurnSpeedX(Float32 x) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the turn velocity on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetTurnSpeedY(Float32 y) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the turn velocity on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetTurnSpeedZ(Float32 z) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the relative turn velocity on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetRelativeTurnSpeedX() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the relative turn velocity on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetRelativeTurnSpeedY() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the relative turn velocity on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetRelativeTurnSpeedZ() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative turn velocity on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetRelativeTurnSpeedX(Float32 x) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative turn velocity on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetRelativeTurnSpeedY(Float32 y) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative turn velocity on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetRelativeTurnSpeedZ(Float32 z) const;
|
2015-09-30 02:56:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // Namespace:: SqMod
|
|
|
|
|
2016-02-20 23:25:00 +01:00
|
|
|
#endif // _ENTITY_VEHICLE_HPP_
|