toontown-just-works/toontown/fishing/BlockoutBingo.py
2024-07-07 18:08:39 -05:00

25 lines
896 B
Python

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