This commit is contained in:
Gnieark 2016-07-01 07:25:28 +02:00
parent b6d49cdae7
commit d307dd6428
2 changed files with 4 additions and 1 deletions

View File

@ -56,7 +56,7 @@ switch ($_POST['act']){
'player-index' => $botCount 'player-index' => $botCount
); );
$responses[] = get_IA_Response($bots[$botCount]->url,$messageArr); $responses[] = get_IA_Response($bots[$botCount]->getURL(),$messageArr);
} }
print_r($responses); print_r($responses);
break; break;

View File

@ -10,6 +10,9 @@ class TronPlayer{
public function getStatus(){ public function getStatus(){
return $this->state; return $this->state;
} }
public function getURL(){
return $this->url;
}
private function set_direction($newDir){ private function set_direction($newDir){
//can't be the opposite of the previous direction //can't be the opposite of the previous direction