ManaPlus
Public Member Functions
EAthena::AttendanceHandler Class Reference

#include <attendancehandler.h>

Inheritance diagram for EAthena::AttendanceHandler:
Net::AttendanceHandler

Public Member Functions

 AttendanceHandler ()
 
 ~AttendanceHandler ()
 
void openAttendanceWindow () const
 
void requestReward () const
 
- Public Member Functions inherited from Net::AttendanceHandler
 AttendanceHandler ()
 

Detailed Description

Definition at line 29 of file attendancehandler.h.

Constructor & Destructor Documentation

◆ AttendanceHandler()

EAthena::AttendanceHandler::AttendanceHandler ( )

Definition at line 37 of file attendancehandler.cpp.

38 {
39  attendanceHandler = this;
40 }
Net::AttendanceHandler * attendanceHandler
Definition: net.cpp:104

References attendanceHandler.

◆ ~AttendanceHandler()

EAthena::AttendanceHandler::~AttendanceHandler ( )
virtual

Reimplemented from Net::AttendanceHandler.

Definition at line 42 of file attendancehandler.cpp.

43 {
44  attendanceHandler = nullptr;
45 }

References attendanceHandler.

Member Function Documentation

◆ openAttendanceWindow()

void EAthena::AttendanceHandler::openAttendanceWindow ( ) const
virtual

Implements Net::AttendanceHandler.

Definition at line 47 of file attendancehandler.cpp.

48 {
49  if (packetVersion < 20160323)
50  return;
51  createOutPacket(CMSG_WINDOW_OPEN_REQUEST2);
52  outMsg.writeInt8(5, "window type");
53 }
int packetVersion
Definition: client.cpp:125
#define createOutPacket(name)
Definition: messageout.h:37

References createOutPacket, and packetVersion.

◆ requestReward()

void EAthena::AttendanceHandler::requestReward ( ) const
virtual

Implements Net::AttendanceHandler.

Definition at line 55 of file attendancehandler.cpp.

56 {
57  if (packetVersionRe < 20180307 &&
58  packetVersionMain < 20180404 &&
59  packetVersionZero < 20180411)
60  {
61  return;
62  }
63 
64  createOutPacket(CMSG_ATTENDANCE_REWARD);
65 }
int packetVersionRe
Definition: client.cpp:127
int packetVersionMain
Definition: client.cpp:126
int packetVersionZero
Definition: client.cpp:128

References createOutPacket, packetVersionMain, packetVersionRe, and packetVersionZero.


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