ManaPlus
Public Member Functions
EAthena::AchievementHandler Class Reference

#include <achievementhandler.h>

Inheritance diagram for EAthena::AchievementHandler:
Net::AchievementHandler

Public Member Functions

 AchievementHandler ()
 
 ~AchievementHandler ()
 
void requestReward (const int achId) const
 
- Public Member Functions inherited from Net::AchievementHandler
 AchievementHandler ()
 

Detailed Description

Definition at line 29 of file achievementhandler.h.

Constructor & Destructor Documentation

◆ AchievementHandler()

EAthena::AchievementHandler::AchievementHandler ( )

Definition at line 32 of file achievementhandler.cpp.

33 {
34  achievementHandler = this;
35 }
Net::AchievementHandler * achievementHandler
Definition: net.cpp:103

References achievementHandler.

◆ ~AchievementHandler()

EAthena::AchievementHandler::~AchievementHandler ( )
virtual

Reimplemented from Net::AchievementHandler.

Definition at line 37 of file achievementhandler.cpp.

38 {
39  achievementHandler = nullptr;
40 }

References achievementHandler.

Member Function Documentation

◆ requestReward()

void EAthena::AchievementHandler::requestReward ( const int  achId) const
virtual

Implements Net::AchievementHandler.

Definition at line 42 of file achievementhandler.cpp.

43 {
44  createOutPacket(CMSG_ACHIEVEMENT_GET_REWARD);
45  outMsg.writeInt32(achId, "ach id");
46 }
#define createOutPacket(name)
Definition: messageout.h:37

References createOutPacket.


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