@@ -945,7 +945,7 @@ discard block |
||
945 | 945 | /** |
946 | 946 | * Set current resource list from array of units |
947 | 947 | * |
948 | - * @param array $resource_list |
|
948 | + * @param integer[] $resource_list |
|
949 | 949 | */ |
950 | 950 | public function resourcesSet($resource_list) { |
951 | 951 | if (!empty($this->propertiesAdjusted['resource_list'])) { |
@@ -993,7 +993,7 @@ discard block |
||
993 | 993 | } |
994 | 994 | |
995 | 995 | /** |
996 | - * @param array $rate |
|
996 | + * @param integer[] $rate |
|
997 | 997 | * |
998 | 998 | * @return float |
999 | 999 | */ |
@@ -1024,7 +1024,6 @@ discard block |
||
1024 | 1024 | * Restores fleet or resources to planet |
1025 | 1025 | * |
1026 | 1026 | * @param bool $start |
1027 | - * @param bool $only_resources |
|
1028 | 1027 | * @param int $result |
1029 | 1028 | * |
1030 | 1029 | * @return int |
@@ -1075,7 +1074,7 @@ discard block |
||
1075 | 1074 | /** |
1076 | 1075 | * @param int $speed_percent |
1077 | 1076 | * |
1078 | - * @return array |
|
1077 | + * @return integer |
|
1079 | 1078 | */ |
1080 | 1079 | protected function flt_travel_data($speed_percent = 10) { |
1081 | 1080 | $distance = $this->targetVector->distanceFromCoordinates($this->dbSourcePlanetRow); |
@@ -1179,6 +1178,9 @@ discard block |
||
1179 | 1178 | } |
1180 | 1179 | } |
1181 | 1180 | |
1181 | + /** |
|
1182 | + * @param integer $errorCode |
|
1183 | + */ |
|
1182 | 1184 | public function restrictToTypePlanet($errorCode) { |
1183 | 1185 | if ($this->targetVector->type != PT_PLANET) { |
1184 | 1186 | throw new Exception($errorCode, $errorCode); |