ManaPlus
Public Member Functions
EAthena::BankHandler Class Reference

#include <bankhandler.h>

Inheritance diagram for EAthena::BankHandler:
Net::BankHandler

Public Member Functions

 BankHandler ()
 
 ~BankHandler ()
 
void deposit (const int money) const
 
void withdraw (const int money) const
 
void check () const
 
void open () const
 
void close () const
 
- Public Member Functions inherited from Net::BankHandler
 BankHandler ()
 

Detailed Description

Definition at line 29 of file bankhandler.h.

Constructor & Destructor Documentation

◆ BankHandler()

EAthena::BankHandler::BankHandler ( )

Definition at line 34 of file bankhandler.cpp.

34  :
36 {
37  bankHandler = this;
38 }
Net::BankHandler * bankHandler
Definition: net.cpp:105

References bankHandler.

◆ ~BankHandler()

EAthena::BankHandler::~BankHandler ( )
virtual

Reimplemented from Net::BankHandler.

Definition at line 40 of file bankhandler.cpp.

41 {
42  bankHandler = nullptr;
43 }

References bankHandler.

Member Function Documentation

◆ check()

void EAthena::BankHandler::check ( ) const
virtual

Implements Net::BankHandler.

Definition at line 63 of file bankhandler.cpp.

64 {
65  if (packetVersion < 20130320)
66  return;
67  createOutPacket(CMSG_BANK_CHECK);
68  outMsg.writeInt32(0, "account id");
69 }
int packetVersion
Definition: client.cpp:125
#define createOutPacket(name)
Definition: messageout.h:37

References createOutPacket, and packetVersion.

◆ close()

void EAthena::BankHandler::close ( ) const
virtual

Implements Net::BankHandler.

Definition at line 79 of file bankhandler.cpp.

80 {
81  if (packetVersion < 20130417)
82  return;
83  createOutPacket(CMSG_BANK_CLOSE);
84  outMsg.writeInt32(0, "unused");
85 }

References createOutPacket, and packetVersion.

◆ deposit()

void EAthena::BankHandler::deposit ( const int  money) const
virtual

Implements Net::BankHandler.

Definition at line 45 of file bankhandler.cpp.

46 {
47  if (packetVersion < 20130320)
48  return;
49  createOutPacket(CMSG_BANK_DEPOSIT);
50  outMsg.writeInt32(0, "account id");
51  outMsg.writeInt32(money, "money");
52 }

References createOutPacket, and packetVersion.

◆ open()

void EAthena::BankHandler::open ( ) const
virtual

Implements Net::BankHandler.

Definition at line 71 of file bankhandler.cpp.

72 {
73  if (packetVersion < 20130417)
74  return;
75  createOutPacket(CMSG_BANK_OPEN);
76  outMsg.writeInt32(0, "unused");
77 }

References createOutPacket, and packetVersion.

◆ withdraw()

void EAthena::BankHandler::withdraw ( const int  money) const
virtual

Implements Net::BankHandler.

Definition at line 54 of file bankhandler.cpp.

55 {
56  if (packetVersion < 20130320)
57  return;
58  createOutPacket(CMSG_BANK_WITHDRAW);
59  outMsg.writeInt32(0, "account id");
60  outMsg.writeInt32(money, "money");
61 }

References createOutPacket, and packetVersion.


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