comparison 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
comparison
equal deleted inserted replaced
167:6ab01f709650 168:8f699a9da6c0
21 print 'marble is ' + city.marble 21 print 'marble is ' + city.marble
22 print 'crystal is ' + city.crystal 22 print 'crystal is ' + city.crystal
23 print 'sulfur is ' + city.sulfur 23 print 'sulfur is ' + city.sulfur
24 print 'positions ' + repr(city.positions) 24 print 'positions ' + repr(city.positions)
25 25
26 city.positions[0].sync()
27 print 'positions[0] level is ' + str(city.positions[0].level)