Crossfire Server, Trunk
|
Functions | |
def | cmd_balance (argv) |
def | cmd_coins (_) |
def | cmd_convert (argc) |
def | cmd_deposit (text) |
def | cmd_help () |
def | cmd_withdraw (argv) |
def | do_deposit (player, amount) |
def | getCoinNameFromArgs (argv) |
def | getExchangeRate (coinName) |
def | main_employee () |
Variables | |
activator = Crossfire.WhoIsActivator() | |
dictionary | ArchType |
dictionary | CoinTypes |
list | thanks_message |
whoami = Crossfire.WhoAmI() | |
x = activator.X | |
y = activator.Y | |
Created by: Joris Bontje <jbontje@suespammers.org> This module implements banking in Crossfire. It provides the 'say' event for bank tellers.
def banksay.cmd_balance | ( | argv | ) |
Find out how much money the player has in his/her account.
Definition at line 90 of file banksay.py.
References getCoinNameFromArgs(), getExchangeRate(), and CFBank.open().
Referenced by main_employee().
def banksay.cmd_coins | ( | _ | ) |
Definition at line 188 of file banksay.py.
Referenced by main_employee().
def banksay.cmd_convert | ( | argc | ) |
Definition at line 166 of file banksay.py.
References getCoinNameFromArgs(), getExchangeRate(), and make_face_from_files.int.
Referenced by main_employee().
def banksay.cmd_deposit | ( | text | ) |
Deposit a certain amount of money.
Definition at line 111 of file banksay.py.
References do_deposit(), getCoinNameFromArgs(), getExchangeRate(), and make_face_from_files.int.
Referenced by main_employee().
def banksay.cmd_help | ( | ) |
Print a help message for the player.
Definition at line 80 of file banksay.py.
Referenced by main_employee().
def banksay.cmd_withdraw | ( | argv | ) |
Withdraw money from the player's account.
Definition at line 134 of file banksay.py.
References getCoinNameFromArgs(), getExchangeRate(), make_face_from_files.int, and CFBank.open().
Referenced by main_employee().
def banksay.do_deposit | ( | player, | |
amount | |||
) |
Deposit the given amount for the player.
Definition at line 73 of file banksay.py.
References CFBank.open().
Referenced by cmd_deposit().
def banksay.getCoinNameFromArgs | ( | argv | ) |
Piece together several arguments to form a coin name.
Definition at line 58 of file banksay.py.
Referenced by cmd_balance(), cmd_convert(), cmd_deposit(), and cmd_withdraw().
def banksay.getExchangeRate | ( | coinName | ) |
Return the exchange rate for the given type of coin.
Definition at line 66 of file banksay.py.
Referenced by cmd_balance(), cmd_convert(), cmd_deposit(), and cmd_withdraw().
def banksay.main_employee | ( | ) |
Definition at line 196 of file banksay.py.
References cmd_balance(), cmd_coins(), cmd_convert(), cmd_deposit(), cmd_help(), cmd_withdraw(), and split().
banksay.activator = Crossfire.WhoIsActivator() |
Definition at line 14 of file banksay.py.
dictionary banksay.ArchType |
Definition at line 32 of file banksay.py.
dictionary banksay.CoinTypes |
Definition at line 20 of file banksay.py.
list banksay.thanks_message |
Definition at line 44 of file banksay.py.
banksay.whoami = Crossfire.WhoAmI() |
Definition at line 15 of file banksay.py.
banksay.x = activator.X |
Definition at line 16 of file banksay.py.
banksay.y = activator.Y |
Definition at line 17 of file banksay.py.