ManaPlus
Public Member Functions
EAthena::QuestHandler Class Reference

#include <questhandler.h>

Inheritance diagram for EAthena::QuestHandler:
Net::QuestHandler

Public Member Functions

 QuestHandler ()
 
 ~QuestHandler ()
 
void setQeustActiveState (const int questId, const bool active) const
 
- Public Member Functions inherited from Net::QuestHandler
 QuestHandler ()
 

Detailed Description

Definition at line 30 of file questhandler.h.

Constructor & Destructor Documentation

◆ QuestHandler()

EAthena::QuestHandler::QuestHandler ( )

Definition at line 32 of file questhandler.cpp.

32  :
34 {
35  questHandler = this;
36 }
Net::QuestHandler * questHandler
Definition: net.cpp:123

References questHandler.

◆ ~QuestHandler()

EAthena::QuestHandler::~QuestHandler ( )
virtual

Reimplemented from Net::QuestHandler.

Definition at line 38 of file questhandler.cpp.

39 {
40  questHandler = nullptr;
41 }

References questHandler.

Member Function Documentation

◆ setQeustActiveState()

void EAthena::QuestHandler::setQeustActiveState ( const int  questId,
const bool  active 
) const
virtual

Implements Net::QuestHandler.

Definition at line 43 of file questhandler.cpp.

45 {
46  createOutPacket(CMSG_QUEST_ACTIVATE);
47  outMsg.writeInt32(questId, "quest id");
48  outMsg.writeInt8(CAST_S8(active ? 1 : 0), "activate");
49 }
#define CAST_S8
Definition: cast.h:26
#define createOutPacket(name)
Definition: messageout.h:37

References CAST_S8, and createOutPacket.


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