Beispiel #1
0
 private function onSolve($answer)
 {
     if (false === ($flag = WC_Warflag::getByWarboxAndID($this->box, Common::getPostString('wfid')))) {
         return $this->module->error('err_warflag');
     }
     if (false === ($solver = $this->module->getMethod('Warsolve'))) {
         return GWF_HTML::err('ERR_METHOD_MISSING', array('Warsolve', 'WeChall'));
     }
     $solver instanceof WeChall_Warsolve;
     return $solver->onAnswer($flag, $answer);
 }