2022-09-19 15:47:30 -05:00
|
|
|
from enum import IntEnum
|
2019-11-02 17:27:54 -05:00
|
|
|
|
|
|
|
class KartShopGlobals:
|
|
|
|
EVENTDICT = {'guiDone': 'guiDone',
|
|
|
|
'returnKart': 'returnKart',
|
|
|
|
'buyKart': 'buyAKart',
|
|
|
|
'buyAccessory': 'buyAccessory'}
|
|
|
|
KARTCLERK_TIMER = 180
|
|
|
|
MAX_KART_ACC = 16
|
|
|
|
|
|
|
|
|
|
|
|
class KartGlobals:
|
|
|
|
ENTER_MOVIE = 1
|
|
|
|
EXIT_MOVIE = 2
|
|
|
|
COUNTDOWN_TIME = 30
|
|
|
|
BOARDING_TIME = 10.0
|
|
|
|
ENTER_RACE_TIME = 6.0
|
2022-09-19 16:27:16 -05:00
|
|
|
ERROR_CODE = IntEnum('ERROR_CODE', ('success', 'eGeneric', 'eTickets', 'eBoardOver', 'eNoKart', 'eOccupied', 'eTrackClosed', 'eTooLate', 'eUnpaid'))
|
2019-11-02 17:27:54 -05:00
|
|
|
FRONT_LEFT_SPOT = 0
|
|
|
|
FRONT_RIGHT_SPOT = 1
|
|
|
|
REAR_LEFT_SPOT = 2
|
|
|
|
REAR_RIGHT_SPOT = 3
|
|
|
|
PAD_GROUP_NUM = 4
|
|
|
|
|
|
|
|
def getPadLocation(padId):
|
|
|
|
return padId % KartGlobals.PAD_GROUP_NUM
|
|
|
|
|
|
|
|
getPadLocation = staticmethod(getPadLocation)
|