pull/96/head
Gnieark 8 years ago
parent b6d49cdae7
commit d307dd6428

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

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

Loading…
Cancel
Save