#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#---------------------------------------------------------------------
|
#
|
#---------------------------------------------------------------------
|
##@package OpenExam
|
# @todo: ¿ªÆô´ðÌâ»î¶¯
|
#
|
# @author: panwei
|
# @date 2011-05-20
|
# @version 1.0
|
#
|
# @note:
|
#---------------------------------------------------------------------
|
"""Version = 2011-05-20 10:10"""
|
#---------------------------------------------------------------------
|
import ShareDefine
|
import PlayerExam
|
import GameWorld
|
import ChConfig
|
#---------------------------------------------------------------------
|
## Ö´ÐÐÂß¼ Ö´Ðиø¶¨²ÎÊý´ÎonHour
|
# @param curPlayer µ±Ç°Íæ¼Ò
|
# @param cmdList ´«Èë²ÎÊý
|
# @return None
|
# @remarks Ö´Ðиø¶¨²ÎÊý´ÎonHour
|
def OnExec(curPlayer, cmdList):
|
if len(cmdList) != 1:
|
return
|
|
openKey = cmdList[0]
|
|
if openKey not in ShareDefine.Def_Game_ExamTypeList:
|
return
|
|
gameWorld = GameWorld.GetGameWorld()
|
|
if gameWorld.GetDictByKey(ChConfig.Def_WorldKey_ExamStep) != PlayerExam.Def_ExamStep_Close:
|
PlayerExam.__Exam_Close(openKey, GameWorld.GetGameWorld().GetTick())
|
|
PlayerExam.Exam_ChangeState(openKey)
|
GameWorld.SendMapServerMsgEx('Game_EXAM', openKey)
|
return
|