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

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')
 

Detailed Description

Definition at line 13 of file CFGamble.py.

Constructor & Destructor Documentation

◆ __init__()

def CFGamble.SlotMachine.__init__ (   self,
  slotname,
  slotlist,
  minpot,
  maxpot 
)

Definition at line 19 of file CFGamble.py.

References CFGamble.SlotMachine.slotfile.

Member Function Documentation

◆ checkslot()

def CFGamble.SlotMachine.checkslot (   self)

◆ payoff()

def CFGamble.SlotMachine.payoff (   self,
  amount 
)

Definition at line 33 of file CFGamble.py.

References CFGamble.SlotMachine.slotdb, and CFGamble.SlotMachine.slotname.

◆ placebet()

def CFGamble.SlotMachine.placebet (   self,
  amount 
)

◆ spin()

def CFGamble.SlotMachine.spin (   self,
  slotnum 
)

Definition at line 37 of file CFGamble.py.

References CFGamble.SlotMachine.slotlist.

Field Documentation

◆ maxpot

CFGamble.SlotMachine.maxpot

Definition at line 24 of file CFGamble.py.

Referenced by CFGamble.SlotMachine.checkslot().

◆ minpot

CFGamble.SlotMachine.minpot

Definition at line 23 of file CFGamble.py.

Referenced by CFGamble.SlotMachine.checkslot(), and CFGamble.SlotMachine.placebet().

◆ slotdb

dictionary CFGamble.SlotMachine.slotdb = {}
static

◆ slotfile

CFGamble.SlotMachine.slotfile = os.path.join(Crossfire.LocalDirectory(),'SlotMachine_file')
static

Definition at line 17 of file CFGamble.py.

Referenced by CFGamble.SlotMachine.__init__().

◆ slotlist

CFGamble.SlotMachine.slotlist

Definition at line 22 of file CFGamble.py.

Referenced by CFGamble.SlotMachine.spin().

◆ slotname

CFGamble.SlotMachine.slotname

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