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

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

#include <TransmittedPackets.hpp>

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

Public Member Functions

 ZC_ACK_PVPPOINT (std::shared_ptr< ZoneSession > s)
 
virtual ~ZC_ACK_PVPPOINT ()
 
void deliver (int char_id, int account_id, int win_point, int lose_point, int point)
 ZC_ACK_PVPPOINT. 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

int _char_id { 0 }
 
int _account_id { 0 }
 
int _win_point { 0 }
 
int _lose_point { 0 }
 
int _point { 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_ACK_PVPPOINT.

Constructor & Destructor Documentation

◆ ZC_ACK_PVPPOINT()

Horizon::Zone::ZC_ACK_PVPPOINT::ZC_ACK_PVPPOINT ( std::shared_ptr< ZoneSession s)
inline
17222 : NetworkPacket<ZoneSession>(ID_ZC_ACK_PVPPOINT, s)
17223 {}
@ ID_ZC_ACK_PVPPOINT
Definition: TransmittedPackets.hpp:17201

◆ ~ZC_ACK_PVPPOINT()

virtual Horizon::Zone::ZC_ACK_PVPPOINT::~ZC_ACK_PVPPOINT ( )
inlinevirtual
17224{}

Member Function Documentation

◆ deliver()

void ZC_ACK_PVPPOINT::deliver ( int  char_id,
int  account_id,
int  win_point,
int  lose_point,
int  point 
)

ZC_ACK_PVPPOINT.

3549{
3550 _char_id = char_id;
3551 _account_id = account_id;
3552 _win_point = win_point;
3553 _lose_point = lose_point;
3554 _point = point;
3555 serialize();
3556 transmit();
3557}
void transmit()
Send an Asynchronous packet by queueing a buffer of a particular size to the connected session.
Definition: NetworkPacket.hpp:94
int _point
Definition: TransmittedPackets.hpp:17234
ByteBuffer & serialize()
Definition: TransmittedPackets.cpp:3558
int _account_id
Definition: TransmittedPackets.hpp:17231
int _char_id
Definition: TransmittedPackets.hpp:17230
int _win_point
Definition: TransmittedPackets.hpp:17232
int _lose_point
Definition: TransmittedPackets.hpp:17233

References _account_id, _char_id, _lose_point, _point, _win_point, serialize(), and Horizon::Base::NetworkPacket< ZoneSession >::transmit().

+ Here is the call graph for this function:

◆ serialize()

ByteBuffer & ZC_ACK_PVPPOINT::serialize ( )
3559{
3560 buf() << _packet_id;
3561 buf() << _char_id;
3562 buf() << _account_id;
3563 buf() << _win_point;
3564 buf() << _lose_point;
3565 buf() << _point;
3566 return buf();
3567}
uint16_t _packet_id
ID of the network packet.
Definition: NetworkPacket.hpp:87
ByteBuffer & buf()
Definition: NetworkPacket.hpp:59

References _account_id, _char_id, _lose_point, Horizon::Base::NetworkPacket< ZoneSession >::_packet_id, _point, _win_point, 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

◆ _account_id

int Horizon::Zone::ZC_ACK_PVPPOINT::_account_id { 0 }

Referenced by deliver(), and serialize().

◆ _char_id

int Horizon::Zone::ZC_ACK_PVPPOINT::_char_id { 0 }

Referenced by deliver(), and serialize().

◆ _lose_point

int Horizon::Zone::ZC_ACK_PVPPOINT::_lose_point { 0 }

Referenced by deliver(), and serialize().

◆ _point

int Horizon::Zone::ZC_ACK_PVPPOINT::_point { 0 }

Referenced by deliver(), and serialize().

◆ _win_point

int Horizon::Zone::ZC_ACK_PVPPOINT::_win_point { 0 }

Referenced by deliver(), and serialize().


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