diff gamelib/constants.py @ 80:a40a76012bd7

Refactor message handling so we can deal with in the gui
author Neil Muller <drnlmuller@gmail.com>
date Wed, 09 May 2012 12:08:44 +0200
parents a253fae32a6f
children 50f8476aa929
line wrap: on
line diff
--- a/gamelib/constants.py	Wed May 09 00:31:11 2012 +0200
+++ b/gamelib/constants.py	Wed May 09 12:08:44 2012 +0200
@@ -10,3 +10,7 @@
 BITSIZE = -16  # unsigned 16 bit
 CHANNELS = 2
 BUFFER = 1024
+
+# Result codes for UI hints
+(MAJOR_SETBACK, FAILURE, SUCCESS, MAJOR_SUCCESS, GAME_WIN, NEW_SCIENCE,
+        NEW_SCHEMATIC) = range(7)