Make Everleaf actully inherit from the super class

This commit is contained in:
Worros 2008-11-07 23:19:18 +13:00
parent 7e41c73742
commit 70f9e6edca
2 changed files with 24 additions and 17 deletions

View File

@ -16,20 +16,25 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
########################################################################
import HandHistoryConverter
from HandHistoryConverter import HandHistoryConverter
class EverleafPoker(HandHistoryConverter):
def __init__:
print "Everleaf Poker hand converter loading"
class Everleaf(HandHistoryConverter):
def __init__(self):
print "Initialising Everleaf converter class"
def readSupportedGames(self):
pass
def readSupportedGames(self):
return
def determineGameType(self):
return
def readPlayerStacks(self):
return
def readBlinds(self):
return
def readAction(self):
return
def determineGameType(self):
pass
def readPlayerStacks(self):
pass
def readBlinds(self):
pass
def readAction(self):
pass
if __name__ == "__main__":
e = Everleaf()

View File

@ -16,18 +16,20 @@
#agpl-3.0.txt in the docs folder of the package.
class HandHistoryConverter:
def __init__(self, site):
print "HandHistoryConverter __init__"
def __init__(self):
pass
# Functions to be implemented in the inheriting class
def readSupportedGames(self): abstract
def determineGameType(self): abstract
def readPlayerStacks(self): abstract
def readBlinds(self): abstract
def readAction(self): abstract
# Functions not necessary to implement in sub class
def readFile(self, filename):
"""Read file"""
def writeStars(self):
"""Write out parsed data"""