Crossfire Server, Trunk
CFBank.CFBank Class Reference
+ Collaboration diagram for CFBank.CFBank:

Public Member Functions

def __enter__ (self)
 
def __exit__ (self, exc_type, exc_value, traceback)
 
def __init__ (self)
 
def close (self)
 
def convert_legacy_balance (self, name)
 
def deposit (self, user, amount)
 
def ensure (self, user)
 
def getbalance (self, user)
 
def init_schema (self)
 
def remove_account (self, user)
 
def withdraw (self, user, amount)
 

Data Fields

 bankdb
 

Detailed Description

Definition at line 10 of file CFBank.py.

Constructor & Destructor Documentation

◆ __init__()

def CFBank.CFBank.__init__ (   self)

Definition at line 11 of file CFBank.py.

Member Function Documentation

◆ __enter__()

def CFBank.CFBank.__enter__ (   self)

Definition at line 17 of file CFBank.py.

◆ __exit__()

def CFBank.CFBank.__exit__ (   self,
  exc_type,
  exc_value,
  traceback 
)

Definition at line 20 of file CFBank.py.

References module_information.close, CFBank.CFBank.close(), and mtar_t.close.

+ Here is the call graph for this function:

◆ close()

def CFBank.CFBank.close (   self)

Definition at line 51 of file CFBank.py.

References CFBank.CFBank.bankdb.

Referenced by CFMail.CFMail.__exit__(), and CFBank.CFBank.__exit__().

+ Here is the caller graph for this function:

◆ convert_legacy_balance()

def CFBank.CFBank.convert_legacy_balance (   self,
  name 
)
Move a player's balance from the player file to the bank.

Definition at line 55 of file CFBank.py.

References CFBank.CFBank.deposit(), and make_face_from_files.int.

Referenced by CFBank.CFBank.getbalance().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deposit()

def CFBank.CFBank.deposit (   self,
  user,
  amount 
)

Definition at line 26 of file CFBank.py.

References CFBank.CFBank.bankdb, and CFBank.CFBank.ensure().

Referenced by CFBank.CFBank.convert_legacy_balance().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ensure()

def CFBank.CFBank.ensure (   self,
  user 
)

Definition at line 23 of file CFBank.py.

References CFBank.CFBank.bankdb.

Referenced by CFBank.CFBank.deposit().

+ Here is the caller graph for this function:

◆ getbalance()

def CFBank.CFBank.getbalance (   self,
  user 
)

Definition at line 38 of file CFBank.py.

References CFBank.CFBank.bankdb, and CFBank.CFBank.convert_legacy_balance().

Referenced by CFBank.CFBank.withdraw().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ init_schema()

def CFBank.CFBank.init_schema (   self)

Definition at line 14 of file CFBank.py.

References CFBank.CFBank.bankdb.

◆ remove_account()

def CFBank.CFBank.remove_account (   self,
  user 
)

Definition at line 48 of file CFBank.py.

◆ withdraw()

def CFBank.CFBank.withdraw (   self,
  user,
  amount 
)

Definition at line 31 of file CFBank.py.

References CFBank.CFBank.bankdb, and CFBank.CFBank.getbalance().

+ Here is the call graph for this function:

Field Documentation

◆ bankdb


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