ManaPlus
Public Member Functions
TmwAthena::BeingHandler Class Reference

#include <beinghandler.h>

Inheritance diagram for TmwAthena::BeingHandler:
Ea::BeingHandler Net::BeingHandler

Public Member Functions

 BeingHandler ()
 
 ~BeingHandler ()
 
void requestNameById (const BeingId id) const
 
void undress (Being *const being) const
 
void requestRanks (const RankT rank) const
 
void viewPlayerEquipment (const Being *const being) const
 
void requestNameByCharId (const int id) const
 
- Public Member Functions inherited from Net::BeingHandler
 BeingHandler ()
 

Additional Inherited Members

- Protected Member Functions inherited from Ea::BeingHandler
 BeingHandler ()
 

Detailed Description

Definition at line 32 of file beinghandler.h.

Constructor & Destructor Documentation

◆ BeingHandler()

TmwAthena::BeingHandler::BeingHandler ( )

Definition at line 35 of file beinghandler.cpp.

35  :
37 {
38  beingHandler = this;
39 }
Net::BeingHandler * beingHandler
Definition: net.cpp:99

References beingHandler.

◆ ~BeingHandler()

TmwAthena::BeingHandler::~BeingHandler ( )
virtual

Reimplemented from Net::BeingHandler.

Definition at line 41 of file beinghandler.cpp.

42 {
43  beingHandler = nullptr;
44 }

References beingHandler.

Member Function Documentation

◆ requestNameByCharId()

void TmwAthena::BeingHandler::requestNameByCharId ( const int  id) const
virtual

Implements Net::BeingHandler.

Definition at line 71 of file beinghandler.cpp.

72 {
73 }

◆ requestNameById()

void TmwAthena::BeingHandler::requestNameById ( const BeingId  id) const
virtual

Implements Net::BeingHandler.

Definition at line 46 of file beinghandler.cpp.

47 {
48  createOutPacket(CMSG_NAME_REQUEST);
49  outMsg.writeBeingId(id, "being id");
50 }
#define createOutPacket(name)
Definition: messageout.h:37

References createOutPacket.

◆ requestRanks()

void TmwAthena::BeingHandler::requestRanks ( const RankT  rank) const
virtual

Implements Net::BeingHandler.

Definition at line 63 of file beinghandler.cpp.

64 {
65 }

◆ undress()

void TmwAthena::BeingHandler::undress ( Being *const  being) const
virtual

Implements Net::BeingHandler.

Definition at line 52 of file beinghandler.cpp.

53 {
54  if (being == nullptr)
55  return;
56  being->unSetSprite(SPRITE_WEAPON);
59  being->unSetSprite(SPRITE_HAIR);
60  being->unSetSprite(SPRITE_SHOES);
61 }
void unSetSprite(const unsigned int slot)
Definition: being.cpp:2861
@ SPRITE_WEAPON
Definition: sprite.h:31
@ SPRITE_SHOES
Definition: sprite.h:38
@ SPRITE_CLOTHES_COLOR
Definition: sprite.h:36
@ SPRITE_HEAD_BOTTOM
Definition: sprite.h:32

References SPRITE_CLOTHES_COLOR, ItemDbType::SPRITE_HAIR, SPRITE_HEAD_BOTTOM, SPRITE_SHOES, SPRITE_WEAPON, and Being::unSetSprite().

◆ viewPlayerEquipment()

void TmwAthena::BeingHandler::viewPlayerEquipment ( const Being *const  being) const
virtual

Implements Net::BeingHandler.

Definition at line 67 of file beinghandler.cpp.

68 {
69 }

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