Crossfire Server, Trunk
|
Public Member Functions | |
def | __init__ (self, slotname, slotlist, minpot, maxpot) |
def | checkslot (self) |
def | payoff (self, amount) |
def | placebet (self, amount) |
def | spin (self, slotnum) |
Data Fields | |
maxpot | |
minpot | |
slotlist | |
slotname | |
Static Public Attributes | |
dictionary | slotdb = {} |
slotfile = os.path.join(Crossfire.LocalDirectory(),'SlotMachine_file') | |
Definition at line 13 of file CFGamble.py.
def CFGamble.SlotMachine.__init__ | ( | self, | |
slotname, | |||
slotlist, | |||
minpot, | |||
maxpot | |||
) |
Definition at line 19 of file CFGamble.py.
References CFGamble.SlotMachine.slotfile.
def CFGamble.SlotMachine.checkslot | ( | self | ) |
Definition at line 45 of file CFGamble.py.
References CFGamble.SlotMachine.maxpot, CFGamble.SlotMachine.minpot, CFGamble.SlotMachine.slotdb, and CFGamble.SlotMachine.slotname.
def CFGamble.SlotMachine.payoff | ( | self, | |
amount | |||
) |
Definition at line 33 of file CFGamble.py.
References CFGamble.SlotMachine.slotdb, and CFGamble.SlotMachine.slotname.
def CFGamble.SlotMachine.placebet | ( | self, | |
amount | |||
) |
Definition at line 26 of file CFGamble.py.
References CFGamble.SlotMachine.minpot, CFGamble.SlotMachine.slotdb, and CFGamble.SlotMachine.slotname.
def CFGamble.SlotMachine.spin | ( | self, | |
slotnum | |||
) |
Definition at line 37 of file CFGamble.py.
References CFGamble.SlotMachine.slotlist.
CFGamble.SlotMachine.maxpot |
Definition at line 24 of file CFGamble.py.
Referenced by CFGamble.SlotMachine.checkslot().
CFGamble.SlotMachine.minpot |
Definition at line 23 of file CFGamble.py.
Referenced by CFGamble.SlotMachine.checkslot(), and CFGamble.SlotMachine.placebet().
|
static |
Definition at line 18 of file CFGamble.py.
Referenced by CFGamble.SlotMachine.checkslot(), CFGamble.SlotMachine.payoff(), and CFGamble.SlotMachine.placebet().
|
static |
Definition at line 17 of file CFGamble.py.
Referenced by CFGamble.SlotMachine.__init__().
CFGamble.SlotMachine.slotlist |
Definition at line 22 of file CFGamble.py.
Referenced by CFGamble.SlotMachine.spin().
CFGamble.SlotMachine.slotname |
Definition at line 21 of file CFGamble.py.
Referenced by CFGamble.SlotMachine.checkslot(), CFGamble.SlotMachine.payoff(), and CFGamble.SlotMachine.placebet().