ManaPlus
Public Member Functions | Protected Attributes
TmwAthena::PetHandler Class Reference

#include <pethandler.h>

Inheritance diagram for TmwAthena::PetHandler:
Net::PetHandler

Public Member Functions

 PetHandler ()
 
 ~PetHandler ()
 
void move (const int x, const int y) const
 
void emote (const uint8_t emoteId)
 
void catchPet (const Being *const being) const
 
void sendPetMessage (const int data) const
 
void setName (const std::string &name) const
 
void requestStatus () const
 
void feed () const
 
void dropLoot () const
 
void returnToEgg () const
 
void unequip () const
 
void setDirection (const unsigned char type) const
 
void evolution (const Item *const item) const
 
- Public Member Functions inherited from Net::PetHandler
 PetHandler ()
 

Protected Attributes

int mRandCounter
 

Detailed Description

Definition at line 30 of file pethandler.h.

Constructor & Destructor Documentation

◆ PetHandler()

TmwAthena::PetHandler::PetHandler ( )

Definition at line 29 of file pethandler.cpp.

29  :
30  mRandCounter(1000)
31 {
32  petHandler = this;
33 }
Net::PetHandler * petHandler
Definition: net.cpp:95

References petHandler.

◆ ~PetHandler()

TmwAthena::PetHandler::~PetHandler ( )
virtual

Reimplemented from Net::PetHandler.

Definition at line 35 of file pethandler.cpp.

36 {
37  petHandler = nullptr;
38 }

References petHandler.

Member Function Documentation

◆ catchPet()

void TmwAthena::PetHandler::catchPet ( const Being *const  being) const
virtual

Implements Net::PetHandler.

Definition at line 49 of file pethandler.cpp.

50 {
51 }

◆ dropLoot()

void TmwAthena::PetHandler::dropLoot ( ) const
virtual

Implements Net::PetHandler.

Definition at line 69 of file pethandler.cpp.

70 {
71 }

◆ emote()

void TmwAthena::PetHandler::emote ( const uint8_t  emoteId)
virtual

Implements Net::PetHandler.

Definition at line 45 of file pethandler.cpp.

46 {
47 }

◆ evolution()

void TmwAthena::PetHandler::evolution ( const Item *const  item) const
virtual

Implements Net::PetHandler.

Definition at line 85 of file pethandler.cpp.

86 {
87 }

◆ feed()

void TmwAthena::PetHandler::feed ( ) const
virtual

Implements Net::PetHandler.

Definition at line 65 of file pethandler.cpp.

66 {
67 }

◆ move()

void TmwAthena::PetHandler::move ( const int  x,
const int  y 
) const
virtual

Implements Net::PetHandler.

Definition at line 40 of file pethandler.cpp.

42 {
43 }

◆ requestStatus()

void TmwAthena::PetHandler::requestStatus ( ) const
virtual

Implements Net::PetHandler.

Definition at line 61 of file pethandler.cpp.

62 {
63 }

◆ returnToEgg()

void TmwAthena::PetHandler::returnToEgg ( ) const
virtual

Implements Net::PetHandler.

Definition at line 73 of file pethandler.cpp.

74 {
75 }

◆ sendPetMessage()

void TmwAthena::PetHandler::sendPetMessage ( const int  data) const
virtual

Implements Net::PetHandler.

Definition at line 53 of file pethandler.cpp.

54 {
55 }

◆ setDirection()

void TmwAthena::PetHandler::setDirection ( const unsigned char  type) const
virtual

Implements Net::PetHandler.

Definition at line 81 of file pethandler.cpp.

82 {
83 }

◆ setName()

void TmwAthena::PetHandler::setName ( const std::string &  name) const
virtual

Implements Net::PetHandler.

Definition at line 57 of file pethandler.cpp.

58 {
59 }

◆ unequip()

void TmwAthena::PetHandler::unequip ( ) const
virtual

Implements Net::PetHandler.

Definition at line 77 of file pethandler.cpp.

78 {
79 }

Field Documentation

◆ mRandCounter

int TmwAthena::PetHandler::mRandCounter
protected

Definition at line 65 of file pethandler.h.


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