Poodletooth-iLand/toontown/racing/KartShopGlobals.py

29 lines
753 B
Python
Raw Normal View History

2015-03-03 16:10:12 -06:00
from direct.showbase import PythonUtil
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
2015-04-07 16:15:58 -05:00
ERROR_CODE = PythonUtil.Enum('success, eGeneric, eTickets, eBoardOver, eNoKart, eOccupied, eTrackClosed, eTooLate')
2015-03-03 16:10:12 -06: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)