2015-09-30 02:56:11 +02:00
|
|
|
#ifndef _ENTITY_BLIP_HPP_
|
|
|
|
#define _ENTITY_BLIP_HPP_
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
#include "Entity.hpp"
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
namespace SqMod {
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
2015-10-29 22:02:55 +01:00
|
|
|
* Class responsible for managing the referenced blip instance.
|
2015-09-30 02:56:11 +02:00
|
|
|
*/
|
|
|
|
class CBlip : public Reference< CBlip >
|
|
|
|
{
|
|
|
|
public:
|
2015-10-29 21:07:15 +01:00
|
|
|
|
2015-10-29 22:02:55 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Import the constructors, destructors and assignment operators from the base class.
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
using RefType::Reference;
|
2015-10-29 21:07:15 +01:00
|
|
|
|
2015-11-01 00:31:28 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Construct a reference from a base reference.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
CBlip(const Reference< CBlip > & o);
|
2015-11-01 00:31:28 +01:00
|
|
|
|
2015-10-29 21:07:15 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
2015-10-29 22:02:55 +01:00
|
|
|
* Retrieve the world in which the referenced blip instance exists.
|
2015-10-29 21:07:15 +01:00
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInteger GetWorld() const;
|
2015-10-29 21:07:15 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2015-10-29 22:03:58 +01:00
|
|
|
* Retrieve the scale of the referenced blip instance.
|
2015-10-29 21:07:15 +01:00
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInteger GetScale() const;
|
2015-10-29 21:07:15 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2015-10-29 22:03:58 +01:00
|
|
|
* Retrieve the position of the referenced blip instance.
|
2015-10-29 21:07:15 +01:00
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
const Vector3 & GetPosition() const;
|
2015-10-29 21:07:15 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2015-10-29 22:03:58 +01:00
|
|
|
* Retrieve the x axis position of the referenced blip instance.
|
2015-10-29 21:07:15 +01:00
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
SQFloat GetPositionX() const;
|
2015-10-29 21:07:15 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2015-10-29 22:03:58 +01:00
|
|
|
* Retrieve the y axis position of the referenced blip instance.
|
2015-10-29 21:07:15 +01:00
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
SQFloat GetPositionY() const;
|
2015-10-29 21:07:15 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2015-10-29 22:03:58 +01:00
|
|
|
* Retrieve the z axis position of the referenced blip instance.
|
2015-10-29 21:07:15 +01:00
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
SQFloat GetPositionZ() const;
|
2015-10-29 21:07:15 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2015-10-29 22:03:58 +01:00
|
|
|
* Retrieve the color of the referenced blip instance.
|
2015-10-29 21:07:15 +01:00
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
const Color4 & GetColor() const;
|
2015-10-29 21:07:15 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2015-10-29 22:03:58 +01:00
|
|
|
* Retrieve the sprite identifier of the referenced blip instance.
|
2015-10-29 21:07:15 +01:00
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInt32 GetSprID() const;
|
2015-09-30 02:56:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // Namespace:: SqMod
|
|
|
|
|
|
|
|
#endif // _ENTITY_BLIP_HPP_
|