fix php
This commit is contained in:
parent
b6d49cdae7
commit
d307dd6428
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user