diff pyikriam/example.py @ 168:8f699a9da6c0

Extract building level of townhalls. - townhall class is responding to extract information about townhall.
author Thinker K.F. Li <thinker@branda.to>
date Sun, 02 Nov 2008 02:26:28 +0800
parents f7fd2738b9b4
children 3ba3edda6d1e
line wrap: on
line diff
--- a/pyikriam/example.py	Sun Nov 02 01:00:35 2008 +0800
+++ b/pyikriam/example.py	Sun Nov 02 02:26:28 2008 +0800
@@ -23,3 +23,5 @@
 print 'sulfur is ' + city.sulfur
 print 'positions ' + repr(city.positions)
 
+city.positions[0].sync()
+print 'positions[0] level is ' + str(city.positions[0].level)