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

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

#include <TransmittedPackets.hpp>

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

Public Member Functions

 ZC_ACTION_FAILURE (std::shared_ptr< ZoneSession > s)
 
virtual ~ZC_ACTION_FAILURE ()
 
void deliver (int16_t message_type)
 ZC_ACTION_FAILURE. 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

int16_t _message_type {0}
 type: 0 = MsgStringTable[242]="Please equip the proper ammunition first." 1 = MsgStringTable[243]="You can't Attack or use Skills because your Weight Limit has been exceeded." 2 = MsgStringTable[244]="You can't use Skills because Weight Limit has been exceeded." 3 = assassin, baby_assassin, assassin_cross => MsgStringTable[1040]="You have equipped throwing daggers." gunslinger => MsgStringTable[1175]="Bullets have been equipped." NOT ninja => MsgStringTable[245]="Ammunition has been equipped." More...
 

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

Constructor & Destructor Documentation

◆ ZC_ACTION_FAILURE()

Horizon::Zone::ZC_ACTION_FAILURE::ZC_ACTION_FAILURE ( std::shared_ptr< ZoneSession s)
inline
18869 : NetworkPacket<ZoneSession>(ID_ZC_ACTION_FAILURE, s)
18870 {}
@ ID_ZC_ACTION_FAILURE
Definition: TransmittedPackets.hpp:18842

◆ ~ZC_ACTION_FAILURE()

virtual Horizon::Zone::ZC_ACTION_FAILURE::~ZC_ACTION_FAILURE ( )
inlinevirtual
18871{}

Member Function Documentation

◆ deliver()

void ZC_ACTION_FAILURE::deliver ( int16_t  message_type)

ZC_ACTION_FAILURE.

610{
611 _message_type = message_type;
612 serialize();
613 transmit();
614}
void transmit()
Send an Asynchronous packet by queueing a buffer of a particular size to the connected session.
Definition: NetworkPacket.hpp:94
int16_t _message_type
type: 0 = MsgStringTable[242]="Please equip the proper ammunition first." 1 = MsgStringTable[243]="Yo...
Definition: TransmittedPackets.hpp:18884
ByteBuffer & serialize()
Definition: TransmittedPackets.cpp:616

References _message_type, serialize(), and Horizon::Base::NetworkPacket< ZoneSession >::transmit().

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

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

◆ serialize()

ByteBuffer & ZC_ACTION_FAILURE::serialize ( )
617{
618 buf() << _packet_id;
619 buf() << _message_type;
620 return buf();
621}
uint16_t _packet_id
ID of the network packet.
Definition: NetworkPacket.hpp:87
ByteBuffer & buf()
Definition: NetworkPacket.hpp:59

References _message_type, Horizon::Base::NetworkPacket< ZoneSession >::_packet_id, 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

◆ _message_type

int16_t Horizon::Zone::ZC_ACTION_FAILURE::_message_type {0}

type: 0 = MsgStringTable[242]="Please equip the proper ammunition first." 1 = MsgStringTable[243]="You can't Attack or use Skills because your Weight Limit has been exceeded." 2 = MsgStringTable[244]="You can't use Skills because Weight Limit has been exceeded." 3 = assassin, baby_assassin, assassin_cross => MsgStringTable[1040]="You have equipped throwing daggers." gunslinger => MsgStringTable[1175]="Bullets have been equipped." NOT ninja => MsgStringTable[245]="Ammunition has been equipped."

Referenced by deliver(), and serialize().


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