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

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

#include <TransmittedPackets.hpp>

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

Public Member Functions

 ZC_USESKILL_ACK3 (std::shared_ptr< ZoneSession > s)
 
virtual ~ZC_USESKILL_ACK3 ()
 
void deliver (uint16_t skill_id, uint32_t src, uint32_t target, uint16_t target_x, uint16_t target_y, uint32_t element, int casttime)
 ZC_USESKILL_ACK3. 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_id
 
uint32_t _target_id
 
uint16_t _x
 
uint16_t _y
 
uint16_t _skill_id
 
uint32_t _element
 
uint32_t _delay_time
 
uint8_t _disposable
 
uint32_t _attack_motion
 

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_ACK3.

Constructor & Destructor Documentation

◆ ZC_USESKILL_ACK3()

Horizon::Zone::ZC_USESKILL_ACK3::ZC_USESKILL_ACK3 ( std::shared_ptr< ZoneSession s)
inline
46278 : NetworkPacket<ZoneSession>(ID_ZC_USESKILL_ACK3, s)
46279 {}
@ ID_ZC_USESKILL_ACK3
Definition: TransmittedPackets.hpp:46254

◆ ~ZC_USESKILL_ACK3()

virtual Horizon::Zone::ZC_USESKILL_ACK3::~ZC_USESKILL_ACK3 ( )
inlinevirtual
46280{}

Member Function Documentation

◆ deliver()

void ZC_USESKILL_ACK3::deliver ( uint16_t  skill_id,
uint32_t  src,
uint32_t  target,
uint16_t  target_x,
uint16_t  target_y,
uint32_t  element,
int  casttime 
)

ZC_USESKILL_ACK3.

7929{
7930 _src_id = src;
7931 _target_id = target;
7932 _x = target_x;
7933 _y = target_y;
7934 _skill_id = skill_id;
7935 _element = element < 0 ? 0 : element;
7936 _delay_time = casttime;
7937 _disposable = 0;
7938 _attack_motion = 0;
7939 serialize();
7940 transmit();
7941}
void transmit()
Send an Asynchronous packet by queueing a buffer of a particular size to the connected session.
Definition: NetworkPacket.hpp:94
uint32_t _target_id
Definition: TransmittedPackets.hpp:46287
uint32_t _attack_motion
Definition: TransmittedPackets.hpp:46294
uint32_t _delay_time
Definition: TransmittedPackets.hpp:46292
uint16_t _skill_id
Definition: TransmittedPackets.hpp:46290
uint32_t _element
Definition: TransmittedPackets.hpp:46291
ByteBuffer & serialize()
Definition: TransmittedPackets.cpp:7942
uint16_t _x
Definition: TransmittedPackets.hpp:46288
uint32_t _src_id
Definition: TransmittedPackets.hpp:46286
uint16_t _y
Definition: TransmittedPackets.hpp:46289
uint8_t _disposable
Definition: TransmittedPackets.hpp:46293

References _attack_motion, _delay_time, _disposable, _element, _skill_id, _src_id, _target_id, _x, _y, serialize(), and Horizon::Base::NetworkPacket< ZoneSession >::transmit().

Referenced by Horizon::Zone::ZoneClientInterface::notify_skill_cast().

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

◆ serialize()

ByteBuffer & ZC_USESKILL_ACK3::serialize ( )
7943{
7944 buf() << _packet_id;
7945 buf() << _src_id;
7946 buf() << _target_id;
7947 buf() << _x;
7948 buf() << _y;
7949 buf() << _skill_id;
7950 buf() << _element;
7951 buf() << _delay_time;
7952 buf() << _disposable;
7953 buf() << _attack_motion;
7954 return buf();
7955}
uint16_t _packet_id
ID of the network packet.
Definition: NetworkPacket.hpp:87
ByteBuffer & buf()
Definition: NetworkPacket.hpp:59

References _attack_motion, _delay_time, _disposable, _element, Horizon::Base::NetworkPacket< ZoneSession >::_packet_id, _skill_id, _src_id, _target_id, _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

◆ _attack_motion

uint32_t Horizon::Zone::ZC_USESKILL_ACK3::_attack_motion

Referenced by deliver(), and serialize().

◆ _delay_time

uint32_t Horizon::Zone::ZC_USESKILL_ACK3::_delay_time

Referenced by deliver(), and serialize().

◆ _disposable

uint8_t Horizon::Zone::ZC_USESKILL_ACK3::_disposable

Referenced by deliver(), and serialize().

◆ _element

uint32_t Horizon::Zone::ZC_USESKILL_ACK3::_element

Referenced by deliver(), and serialize().

◆ _skill_id

uint16_t Horizon::Zone::ZC_USESKILL_ACK3::_skill_id

Referenced by deliver(), and serialize().

◆ _src_id

uint32_t Horizon::Zone::ZC_USESKILL_ACK3::_src_id

Referenced by deliver(), and serialize().

◆ _target_id

uint32_t Horizon::Zone::ZC_USESKILL_ACK3::_target_id

Referenced by deliver(), and serialize().

◆ _x

uint16_t Horizon::Zone::ZC_USESKILL_ACK3::_x

Referenced by deliver(), and serialize().

◆ _y

uint16_t Horizon::Zone::ZC_USESKILL_ACK3::_y

Referenced by deliver(), and serialize().


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