Crossfire Server, Trunk
|
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 | |
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.
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__().
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().
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().
def CFBank.CFBank.ensure | ( | self, | |
user | |||
) |
Definition at line 23 of file CFBank.py.
References CFBank.CFBank.bankdb.
Referenced by CFBank.CFBank.deposit().
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().
def CFBank.CFBank.init_schema | ( | self | ) |
Definition at line 14 of file CFBank.py.
References CFBank.CFBank.bankdb.
def CFBank.CFBank.withdraw | ( | self, | |
user, | |||
amount | |||
) |
Definition at line 31 of file CFBank.py.
References CFBank.CFBank.bankdb, and CFBank.CFBank.getbalance().
CFBank.CFBank.bankdb |
Definition at line 12 of file CFBank.py.
Referenced by CFBank.CFBank.close(), CFBank.CFBank.deposit(), CFBank.CFBank.ensure(), CFDataBase.CFDataBase.get(), CFBank.CFBank.getbalance(), CFBank.CFBank.init_schema(), CFDataBase.CFDataBase.remove_record(), CFDataBase.CFDataBase.store(), and CFBank.CFBank.withdraw().