mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
26 lines
896 B
Python
26 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
|