ManaPlus
Public Member Functions
EAthena::MapHandler Class Reference

#include <maphandler.h>

Inheritance diagram for EAthena::MapHandler:
Net::MapHandler

Public Member Functions

 MapHandler ()
 
 ~MapHandler ()
 
void blockPlayCancel () const
 
void destroyInstance () const
 
void camera (const int action, const float range, const float rotation, const float latitude) const
 
void clientVersion (const int version) const
 
- Public Member Functions inherited from Net::MapHandler
 MapHandler ()
 

Detailed Description

Definition at line 30 of file maphandler.h.

Constructor & Destructor Documentation

◆ MapHandler()

EAthena::MapHandler::MapHandler ( )

Definition at line 34 of file maphandler.cpp.

34  :
36 {
37  mapHandler = this;
38 }
Net::MapHandler * mapHandler
Definition: net.cpp:115

References mapHandler.

◆ ~MapHandler()

EAthena::MapHandler::~MapHandler ( )
virtual

Reimplemented from Net::MapHandler.

Definition at line 40 of file maphandler.cpp.

41 {
42  mapHandler = nullptr;
43 }

References mapHandler.

Member Function Documentation

◆ blockPlayCancel()

void EAthena::MapHandler::blockPlayCancel ( ) const
virtual

Implements Net::MapHandler.

Definition at line 45 of file maphandler.cpp.

46 {
47  createOutPacket(CMSG_MAP_BLOCK_PLAY_CANCEL);
48 }
#define createOutPacket(name)
Definition: messageout.h:37

References createOutPacket.

◆ camera()

void EAthena::MapHandler::camera ( const int  action,
const float  range,
const float  rotation,
const float  latitude 
) const
virtual

Implements Net::MapHandler.

Definition at line 56 of file maphandler.cpp.

60 {
61  if (packetVersion < 20160525)
62  return;
63  createOutPacket(CMSG_CAMERA_INFO);
64  outMsg.writeInt8(action, "action");
65  outMsg.writeFloat(range, "range");
66  outMsg.writeFloat(rotation, "rotation");
67  outMsg.writeFloat(latitude, "latitude");
68 }
int packetVersion
Definition: client.cpp:125

References createOutPacket, and packetVersion.

◆ clientVersion()

void EAthena::MapHandler::clientVersion ( const int  version) const
virtual

Implements Net::MapHandler.

Definition at line 70 of file maphandler.cpp.

71 {
72  if (packetVersion < 20090406)
73  return;
74  createOutPacket(CMSG_CLIENT_VERSION);
75  outMsg.writeInt32(version, "version");
76 }

References createOutPacket, and packetVersion.

◆ destroyInstance()

void EAthena::MapHandler::destroyInstance ( ) const
virtual

Implements Net::MapHandler.

Definition at line 50 of file maphandler.cpp.

51 {
52  createOutPacket(CMSG_INSTANCE_COMMAND);
53  outMsg.writeInt32(3, "command");
54 }

References createOutPacket.


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