Horizon Official Technical Documentation
Horizon::Zone::ZC_USESKILL_ACK Class Reference

Main object for the aegis packet: ZC_USESKILL_ACK. More...

#include <TransmittedPackets.hpp>

+ Inheritance diagram for Horizon::Zone::ZC_USESKILL_ACK:
+ Collaboration diagram for Horizon::Zone::ZC_USESKILL_ACK:

Public Member Functions

 ZC_USESKILL_ACK (std::shared_ptr< ZoneSession > s)
 
virtual ~ZC_USESKILL_ACK ()
 
void deliver (int src_guid, int dst_guid, int x, int y, int skill_id, int element, int delay_time)
 ZC_USESKILL_ACK. More...
 
ByteBufferserialize ()
 
- Public Member Functions inherited from Horizon::Base::NetworkPacket< ZoneSession >
 NetworkPacket (uint16_t packet_id, std::shared_ptr< ZoneSession > s)
 
virtual ~NetworkPacket ()
 
void set_packet_id (uint16_t id)
 
uint16_t get_packet_id ()
 
ByteBufferbuf ()
 
std::shared_ptr< ZoneSession > get_session ()
 Retrieves the session from this handler instance. More...
 
virtual void handle (ByteBuffer &&buf)
 
virtual void deserialize (ByteBuffer &buf)
 
void transmit ()
 Send an Asynchronous packet by queueing a buffer of a particular size to the connected session. More...
 
void transmit (std::size_t size)
 Send an Asynchronous packet by queueing a buffer of a particular size to the connected session. More...
 

Public Attributes

uint32_t _src_guid
 
uint32_t _dst_guid
 
uint16_t _x
 
uint16_t _y
 
uint16_t _skill_id
 
uint32_t _element
 
uint32_t _delay_time
 

Additional Inherited Members

- Protected Attributes inherited from Horizon::Base::NetworkPacket< ZoneSession >
ByteBuffer _buffer
 Buffer storage facility for the packet stream. More...
 
uint16_t _packet_id
 ID of the network packet. More...
 

Detailed Description

Main object for the aegis packet: ZC_USESKILL_ACK.

Constructor & Destructor Documentation

◆ ZC_USESKILL_ACK()

Horizon::Zone::ZC_USESKILL_ACK::ZC_USESKILL_ACK ( std::shared_ptr< ZoneSession s)
inline
46191 : NetworkPacket<ZoneSession>(ID_ZC_USESKILL_ACK, s)
46192 {}
@ ID_ZC_USESKILL_ACK
Definition: TransmittedPackets.hpp:46164

◆ ~ZC_USESKILL_ACK()

virtual Horizon::Zone::ZC_USESKILL_ACK::~ZC_USESKILL_ACK ( )
inlinevirtual
46193{}

Member Function Documentation

◆ deliver()

void ZC_USESKILL_ACK::deliver ( int  src_guid,
int  dst_guid,
int  x,
int  y,
int  skill_id,
int  element,
int  delay_time 
)

ZC_USESKILL_ACK.

3385{
3386 _src_guid = src_guid;
3387 _dst_guid = dst_guid;
3388 _x = x;
3389 _y = y;
3390 _skill_id = skill_id;
3391 _element = element;
3392 _delay_time = delay_time;
3393 serialize();
3394 transmit();
3395}
void transmit()
Send an Asynchronous packet by queueing a buffer of a particular size to the connected session.
Definition: NetworkPacket.hpp:94
uint16_t _y
Definition: TransmittedPackets.hpp:46202
ByteBuffer & serialize()
Definition: TransmittedPackets.cpp:3396
uint16_t _x
Definition: TransmittedPackets.hpp:46201
uint16_t _skill_id
Definition: TransmittedPackets.hpp:46203
uint32_t _element
Definition: TransmittedPackets.hpp:46204
uint32_t _dst_guid
Definition: TransmittedPackets.hpp:46200
uint32_t _src_guid
Definition: TransmittedPackets.hpp:46199
uint32_t _delay_time
Definition: TransmittedPackets.hpp:46205

References _delay_time, _dst_guid, _element, _skill_id, _src_guid, _x, _y, serialize(), and Horizon::Base::NetworkPacket< ZoneSession >::transmit().

+ Here is the call graph for this function:

◆ serialize()

ByteBuffer & ZC_USESKILL_ACK::serialize ( )
3397{
3398 buf() << _packet_id;
3399 buf() << _src_guid;
3400 buf() << _dst_guid;
3401 buf() << _x;
3402 buf() << _y;
3403 buf() << _skill_id;
3404 buf() << _element;
3405 buf() << _delay_time;
3406
3407 return buf();
3408}
uint16_t _packet_id
ID of the network packet.
Definition: NetworkPacket.hpp:87
ByteBuffer & buf()
Definition: NetworkPacket.hpp:59

References _delay_time, _dst_guid, _element, Horizon::Base::NetworkPacket< ZoneSession >::_packet_id, _skill_id, _src_guid, _x, _y, and Horizon::Base::NetworkPacket< ZoneSession >::buf().

Referenced by deliver().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _delay_time

uint32_t Horizon::Zone::ZC_USESKILL_ACK::_delay_time

Referenced by deliver(), and serialize().

◆ _dst_guid

uint32_t Horizon::Zone::ZC_USESKILL_ACK::_dst_guid

Referenced by deliver(), and serialize().

◆ _element

uint32_t Horizon::Zone::ZC_USESKILL_ACK::_element

Referenced by deliver(), and serialize().

◆ _skill_id

uint16_t Horizon::Zone::ZC_USESKILL_ACK::_skill_id

Referenced by deliver(), and serialize().

◆ _src_guid

uint32_t Horizon::Zone::ZC_USESKILL_ACK::_src_guid

Referenced by deliver(), and serialize().

◆ _x

uint16_t Horizon::Zone::ZC_USESKILL_ACK::_x

Referenced by deliver(), and serialize().

◆ _y

uint16_t Horizon::Zone::ZC_USESKILL_ACK::_y

Referenced by deliver(), and serialize().


The documentation for this class was generated from the following files: