Poodletooth-iLand/toontown/fishing/BlockoutBingo.py

26 lines
896 B
Python
Raw Permalink Normal View History

2015-11-14 13:28:53 -06:00
from direct.directnotify import DirectNotifyGlobal
from toontown.fishing import BingoGlobals
from toontown.fishing import BingoCardBase
class BlockoutBingo(BingoCardBase.BingoCardBase):
notify = DirectNotifyGlobal.directNotify.newCategory('BlockoutBingo')
def __init__(self, cardSize = BingoGlobals.CARD_SIZE, rowSize = BingoGlobals.CARD_ROWS, colSize = BingoGlobals.CARD_COLS):
BingoCardBase.BingoCardBase.__init__(self, cardSize, rowSize, colSize)
self.gameType = BingoGlobals.BLOCKOUT_CARD
def checkForWin(self, id = 0):
for i in xrange(self.rowSize):
if not self.rowCheck(i):
return BingoGlobals.NO_UPDATE
return BingoGlobals.WIN
def checkForColor(self, id):
return 1
def checkForBingo(self):
if self.checkForWin():
return BingoGlobals.WIN
return BingoGlobals.NO_UPDATE