예제 #1
0
파일: Mode.php 프로젝트: eridal/vindinium
 /**
  * @param Client $client
  * @return State
  */
 function create(Client $client)
 {
     $url = $client->hostUrl . $this->path;
     return $client->send($url, $this->params);
 }
예제 #2
0
파일: Match.php 프로젝트: eridal/vindinium
 function play()
 {
     $this->robot->play($this->state, $move = new Move());
     $this->state = $this->client->send($this->state->playUrl, array('dir' => (string) $move));
 }