ManaPlus
Public Member Functions
TmwAthena::SkillHandler Class Reference

#include <skillhandler.h>

Inheritance diagram for TmwAthena::SkillHandler:
Ea::SkillHandler Net::SkillHandler

Public Member Functions

 SkillHandler ()
 
 ~SkillHandler ()
 
void useBeing (const int id, const int level, const BeingId beingId) const
 
void useBeingStart (const int id, const int level, const BeingId beingId) const
 
void useStop (const int id) const
 
void usePos (const int id, const int level, const int x, const int y) const
 
void usePos (const int id, const int level, const int x, const int y, const std::string &text) const
 
void useMap (const int id, const std::string &map) const
 
void getAlchemistRanks () const
 
void getBlacksmithRanks () const
 
void getPkRanks () const
 
void getTaekwonRanks () const
 
void feelSaveOk (const int which) const
 
void lessEffects (const bool isLess) const
 
- Public Member Functions inherited from Ea::SkillHandler
 SkillHandler ()
 
- Public Member Functions inherited from Net::SkillHandler
 SkillHandler ()
 

Detailed Description

Definition at line 32 of file skillhandler.h.

Constructor & Destructor Documentation

◆ SkillHandler()

TmwAthena::SkillHandler::SkillHandler ( )

Definition at line 34 of file skillhandler.cpp.

34  :
36 {
37  skillHandler = this;
38 }
Net::SkillHandler * skillHandler
Definition: net.cpp:97

References skillHandler.

◆ ~SkillHandler()

TmwAthena::SkillHandler::~SkillHandler ( )
virtual

Reimplemented from Net::SkillHandler.

Definition at line 40 of file skillhandler.cpp.

41 {
42  skillHandler = nullptr;
43 }

References skillHandler.

Member Function Documentation

◆ feelSaveOk()

void TmwAthena::SkillHandler::feelSaveOk ( const int  which) const
virtual

Implements Net::SkillHandler.

Definition at line 109 of file skillhandler.cpp.

110 {
111 }

◆ getAlchemistRanks()

void TmwAthena::SkillHandler::getAlchemistRanks ( ) const
virtual

Implements Net::SkillHandler.

Definition at line 93 of file skillhandler.cpp.

94 {
95 }

◆ getBlacksmithRanks()

void TmwAthena::SkillHandler::getBlacksmithRanks ( ) const
virtual

Implements Net::SkillHandler.

Definition at line 97 of file skillhandler.cpp.

98 {
99 }

◆ getPkRanks()

void TmwAthena::SkillHandler::getPkRanks ( ) const
virtual

Implements Net::SkillHandler.

Definition at line 101 of file skillhandler.cpp.

102 {
103 }

◆ getTaekwonRanks()

void TmwAthena::SkillHandler::getTaekwonRanks ( ) const
virtual

Implements Net::SkillHandler.

Definition at line 105 of file skillhandler.cpp.

106 {
107 }

◆ lessEffects()

void TmwAthena::SkillHandler::lessEffects ( const bool  isLess) const
virtual

Implements Net::SkillHandler.

Definition at line 113 of file skillhandler.cpp.

114 {
115 }

◆ useBeing()

void TmwAthena::SkillHandler::useBeing ( const int  id,
const int  level,
const BeingId  beingId 
) const
virtual

Implements Net::SkillHandler.

Definition at line 45 of file skillhandler.cpp.

47 {
48  createOutPacket(CMSG_SKILL_USE_BEING);
49  outMsg.writeInt16(CAST_S16(id), "skill id");
50  outMsg.writeInt16(CAST_S16(level), "level");
51  outMsg.writeBeingId(beingId, "target id");
52 }
#define CAST_S16
Definition: cast.h:28
#define createOutPacket(name)
Definition: messageout.h:37

References CAST_S16, and createOutPacket.

◆ useBeingStart()

void TmwAthena::SkillHandler::useBeingStart ( const int  id,
const int  level,
const BeingId  beingId 
) const
virtual

Implements Net::SkillHandler.

Definition at line 54 of file skillhandler.cpp.

57 {
58 }

◆ useMap()

void TmwAthena::SkillHandler::useMap ( const int  id,
const std::string &  map 
) const
virtual

Implements Net::SkillHandler.

Definition at line 86 of file skillhandler.cpp.

87 {
88  createOutPacket(CMSG_SKILL_USE_MAP);
89  outMsg.writeInt16(CAST_S16(id), "skill id");
90  outMsg.writeString(map, 16, "map name");
91 }

References CAST_S16, and createOutPacket.

◆ usePos() [1/2]

void TmwAthena::SkillHandler::usePos ( const int  id,
const int  level,
const int  x,
const int  y 
) const
virtual

Implements Net::SkillHandler.

Definition at line 64 of file skillhandler.cpp.

66 {
67  createOutPacket(CMSG_SKILL_USE_POSITION);
68  outMsg.writeInt16(CAST_S16(level), "skill level");
69  outMsg.writeInt16(CAST_S16(id), "skill id");
70  outMsg.writeInt16(CAST_S16(x), "x");
71  outMsg.writeInt16(CAST_S16(y), "y");
72 }

References CAST_S16, createOutPacket, x, and y.

◆ usePos() [2/2]

void TmwAthena::SkillHandler::usePos ( const int  id,
const int  level,
const int  x,
const int  y,
const std::string &  text 
) const
virtual

Implements Net::SkillHandler.

Definition at line 74 of file skillhandler.cpp.

77 {
78  createOutPacket(CMSG_SKILL_USE_POSITION_MORE);
79  outMsg.writeInt16(CAST_S16(level), "skill level");
80  outMsg.writeInt16(CAST_S16(id), "skill id");
81  outMsg.writeInt16(CAST_S16(x), "x");
82  outMsg.writeInt16(CAST_S16(y), "y");
83  outMsg.writeString(text, 80, "text");
84 }

References CAST_S16, createOutPacket, x, and y.

◆ useStop()

void TmwAthena::SkillHandler::useStop ( const int  id) const
virtual

Implements Net::SkillHandler.

Definition at line 60 of file skillhandler.cpp.

61 {
62 }

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