comparison gamelib/constants.py @ 138:14917385a0fd

Better handling of mission results and turn-end messages.
author Jeremy Thurgood <firxen@gmail.com>
date Thu, 10 May 2012 22:33:26 +0200
parents 7cd716328a44
children 821ecb98e888
comparison
equal deleted inserted replaced
137:fb8037bc22f1 138:14917385a0fd
10 BITSIZE = -16 # unsigned 16 bit 10 BITSIZE = -16 # unsigned 16 bit
11 CHANNELS = 2 11 CHANNELS = 2
12 BUFFER = 1024 12 BUFFER = 1024
13 13
14 # Result codes for UI hints 14 # Result codes for UI hints
15 (MAJOR_SETBACK, FAILURE, SUCCESS, MAJOR_SUCCESS, GAME_WIN, NEW_SCIENCE, 15 (MAJOR_SETBACK, FAILURE, SUCCESS, MAJOR_SUCCESS, GAME_WIN, INFO) = range(6)
16 NEW_SCHEMATIC, NEW_MILESTONE) = range(8)
17 16
18 # Planning to take over the: 17 # Planning to take over the:
19 MILESTONES = ("basement", "neighbourhood", "city", "world") 18 MILESTONES = ("basement", "neighbourhood", "city", "world")
20 M_VALS = dict((name, i) for i, name in enumerate(MILESTONES)) 19 M_VALS = dict((name, i) for i, name in enumerate(MILESTONES))