#coding:utf-8
from random import randint
import time,sys
class Map_han():
def __init__(self):
pass
def han_center(self):
print "随机剧情生成中",
#for i in range(0,5):
#sys.stdout.write(".")
#sys.stdout.flush()
#time.sleep(1)
battle=['官渡之战','赤壁之战','夷陵猇亭之战','合肥之战']
battle1={0:'battle_guandu',1:'battle_chibi',
2:'battle_yiling',3:'battle_hefei'}
part=randint(0,len(battle)-1)
print battle[part]
self.out=battle1[part]
j=getattr(self,'out')
j()
#return self.out
def battle_guandu(self):
print 'a'
def battle_chibi(self):
print 'b'
def battle_yiling(self):
print 'c'
def battle_hefei(self):
print 'd'
a=Map_han()
a.han_center()