annotate pyikriam/lazy/www/core/utils.py @ 372:9f19fe8d189c

withdraw the ship 10 minutes first, we have only need 2 ships for blocking a town.
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Tue, 14 Apr 2009 17:00:05 +0800
parents a4c364888197
children
rev   line source
62
a4c364888197 add ikriam game binding lib python version
hychen@mluna
parents:
diff changeset
1
a4c364888197 add ikriam game binding lib python version
hychen@mluna
parents:
diff changeset
2 def mix_in(py_class, mixin_class):
a4c364888197 add ikriam game binding lib python version
hychen@mluna
parents:
diff changeset
3 if mixin_class not in py_class.__bases__:
a4c364888197 add ikriam game binding lib python version
hychen@mluna
parents:
diff changeset
4 py_class.__bases__ += (mixin_class,)