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

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

#include <TransmittedPackets.hpp>

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

Public Member Functions

 ZC_NOTIFY_ACT3 (std::shared_ptr< ZoneSession > s)
 
virtual ~ZC_NOTIFY_ACT3 ()
 
void deliver (int guid, int target_guid, int start_time, int delay_skill, int delay_damage, int damage, bool is_sp_damaged, int number_of_hits, int8_t action_type, int left_damage)
 ZC_NOTIFY_ACT3. 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

int32_t _guid {0}
 
int32_t _target_guid {0}
 
int32_t _start_time {0}
 
int32_t _delay_skill {0}
 
int32_t _delay_damage {0}
 
int32_t _damage {0}
 
int8_t _is_sp_damaged {0}
 
int16_t _number_of_hits {0}
 
uint8_t _action_type {0}
 
int32_t _left_damage {0}
 

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

Constructor & Destructor Documentation

◆ ZC_NOTIFY_ACT3()

Horizon::Zone::ZC_NOTIFY_ACT3::ZC_NOTIFY_ACT3 ( std::shared_ptr< ZoneSession s)
inline
32035 : NetworkPacket<ZoneSession>(ID_ZC_NOTIFY_ACT3, s)
32036 {}
@ ID_ZC_NOTIFY_ACT3
Definition: TransmittedPackets.hpp:32011

◆ ~ZC_NOTIFY_ACT3()

virtual Horizon::Zone::ZC_NOTIFY_ACT3::~ZC_NOTIFY_ACT3 ( )
inlinevirtual
32037{}

Member Function Documentation

◆ deliver()

void ZC_NOTIFY_ACT3::deliver ( int  guid,
int  target_guid,
int  start_time,
int  delay_skill,
int  delay_damage,
int  damage,
bool  is_sp_damaged,
int  number_of_hits,
int8_t  action_type,
int  left_damage 
)

ZC_NOTIFY_ACT3.

7627{
7628 _guid = guid;
7629 _target_guid = target_guid;
7630 _start_time = start_time;
7631 _delay_skill = delay_skill;
7632 _delay_damage = delay_damage;
7633 _damage = damage;
7634 _is_sp_damaged = is_sp_damaged;
7635 _number_of_hits = number_of_hits;
7636 _action_type = action_type;
7637 _left_damage = left_damage;
7638
7639 serialize();
7640 transmit();
7641}
void transmit()
Send an Asynchronous packet by queueing a buffer of a particular size to the connected session.
Definition: NetworkPacket.hpp:94
int32_t _guid
Definition: TransmittedPackets.hpp:32043
int32_t _delay_damage
Definition: TransmittedPackets.hpp:32047
uint8_t _action_type
Definition: TransmittedPackets.hpp:32051
int32_t _start_time
Definition: TransmittedPackets.hpp:32045
int32_t _target_guid
Definition: TransmittedPackets.hpp:32044
int32_t _delay_skill
Definition: TransmittedPackets.hpp:32046
int32_t _left_damage
Definition: TransmittedPackets.hpp:32052
ByteBuffer & serialize()
Definition: TransmittedPackets.cpp:7643
int8_t _is_sp_damaged
Definition: TransmittedPackets.hpp:32049
int32_t _damage
Definition: TransmittedPackets.hpp:32048
int16_t _number_of_hits
Definition: TransmittedPackets.hpp:32050

References _action_type, _damage, _delay_damage, _delay_skill, _guid, _is_sp_damaged, _left_damage, _number_of_hits, _start_time, _target_guid, serialize(), and Horizon::Base::NetworkPacket< ZoneSession >::transmit().

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

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

◆ serialize()

ByteBuffer & ZC_NOTIFY_ACT3::serialize ( )
7644{
7645 buf() << _packet_id;
7646 buf() << _guid;
7647 buf() << _target_guid;
7648 buf() << _start_time;
7649 buf() << _delay_skill;
7650 buf() << _delay_damage;
7651 buf() << _damage;
7652 buf() << _is_sp_damaged;
7653 buf() << _number_of_hits;
7654 buf() << _action_type;
7655 buf() << _left_damage;
7656 return buf();
7657}
uint16_t _packet_id
ID of the network packet.
Definition: NetworkPacket.hpp:87
ByteBuffer & buf()
Definition: NetworkPacket.hpp:59

References _action_type, _damage, _delay_damage, _delay_skill, _guid, _is_sp_damaged, _left_damage, _number_of_hits, Horizon::Base::NetworkPacket< ZoneSession >::_packet_id, _start_time, _target_guid, 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

◆ _action_type

uint8_t Horizon::Zone::ZC_NOTIFY_ACT3::_action_type {0}

Referenced by deliver(), and serialize().

◆ _damage

int32_t Horizon::Zone::ZC_NOTIFY_ACT3::_damage {0}

Referenced by deliver(), and serialize().

◆ _delay_damage

int32_t Horizon::Zone::ZC_NOTIFY_ACT3::_delay_damage {0}

Referenced by deliver(), and serialize().

◆ _delay_skill

int32_t Horizon::Zone::ZC_NOTIFY_ACT3::_delay_skill {0}

Referenced by deliver(), and serialize().

◆ _guid

int32_t Horizon::Zone::ZC_NOTIFY_ACT3::_guid {0}

Referenced by deliver(), and serialize().

◆ _is_sp_damaged

int8_t Horizon::Zone::ZC_NOTIFY_ACT3::_is_sp_damaged {0}

Referenced by deliver(), and serialize().

◆ _left_damage

int32_t Horizon::Zone::ZC_NOTIFY_ACT3::_left_damage {0}

Referenced by deliver(), and serialize().

◆ _number_of_hits

int16_t Horizon::Zone::ZC_NOTIFY_ACT3::_number_of_hits {0}

Referenced by deliver(), and serialize().

◆ _start_time

int32_t Horizon::Zone::ZC_NOTIFY_ACT3::_start_time {0}

Referenced by deliver(), and serialize().

◆ _target_guid

int32_t Horizon::Zone::ZC_NOTIFY_ACT3::_target_guid {0}

Referenced by deliver(), and serialize().


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