mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 21:22:27 -06:00
25 lines
896 B
Python
Executable file
25 lines
896 B
Python
Executable file
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
|