From d307dd6428c1eb1ec6dd397c9745ee83f4afe989 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Fri, 1 Jul 2016 07:25:28 +0200 Subject: [PATCH] fix php --- src/arenas/tron/act.php | 2 +- src/arenas/tron/functions.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/arenas/tron/act.php b/src/arenas/tron/act.php index 5821e44..4813094 100644 --- a/src/arenas/tron/act.php +++ b/src/arenas/tron/act.php @@ -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; diff --git a/src/arenas/tron/functions.php b/src/arenas/tron/functions.php index ac8190a..ff1ba92 100644 --- a/src/arenas/tron/functions.php +++ b/src/arenas/tron/functions.php @@ -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