@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | * Преобразовывает данные симулятора в данные для расчета боя |
460 | 460 | * |
461 | 461 | * @param $side_info |
462 | - * @param $attacker |
|
462 | + * @param boolean $attacker |
|
463 | 463 | * @param int $player_id |
464 | 464 | * |
465 | 465 | */ |
@@ -521,7 +521,7 @@ discard block |
||
521 | 521 | } |
522 | 522 | |
523 | 523 | /** |
524 | - * @return int |
|
524 | + * @return double |
|
525 | 525 | */ |
526 | 526 | public function get_time_spent() { |
527 | 527 | return $this->time_spent; |
@@ -564,7 +564,7 @@ discard block |
||
564 | 564 | } |
565 | 565 | |
566 | 566 | /** |
567 | - * @param $template |
|
567 | + * @param null|template $template |
|
568 | 568 | * |
569 | 569 | * @return template |
570 | 570 | */ |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | } |
151 | 151 | |
152 | 152 | /** |
153 | - * @param $ube_report_id |
|
153 | + * @param integer $ube_report_id |
|
154 | 154 | * |
155 | 155 | * @return array |
156 | 156 | * |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | |
289 | 289 | |
290 | 290 | /** |
291 | - * @param $ube_report_id |
|
291 | + * @param integer $ube_report_id |
|
292 | 292 | * |
293 | 293 | * @return array |
294 | 294 | */ |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | // Рендерит таблицу общего результата боя |
337 | 337 | /** |
338 | 338 | * @param $array |
339 | - * @param $lang_header_index |
|
339 | + * @param string $lang_header_index |
|
340 | 340 | * |
341 | 341 | * @return array |
342 | 342 | */ |
@@ -362,6 +362,9 @@ discard block |
||
362 | 362 | } |
363 | 363 | |
364 | 364 | |
365 | + /** |
|
366 | + * @param integer $ube_report_id |
|
367 | + */ |
|
365 | 368 | public function sql_generate_outcome_unit_array(&$sql_perform_report_unit, $ube_report_id) { |
366 | 369 | $fleet_id = $this->db_id; |
367 | 370 | |
@@ -468,6 +471,10 @@ discard block |
||
468 | 471 | $this->fleet_capacity -= $fleet_total_resources; |
469 | 472 | } |
470 | 473 | |
474 | + /** |
|
475 | + * @param integer $is_small_fleet_recce |
|
476 | + * @param integer $reapers_status |
|
477 | + */ |
|
471 | 478 | public function db_save_combat_result_fleet($is_small_fleet_recce, $reapers_status) { |
472 | 479 | $ship_count_initial = $this->unit_list->unitsCount(); |
473 | 480 | $ship_count_lost = $this->unit_list->unitCountLost(); |
@@ -535,7 +542,7 @@ discard block |
||
535 | 542 | |
536 | 543 | /** |
537 | 544 | * @param UBEFleetList $fleet_list |
538 | - * @param $is_simulator |
|
545 | + * @param boolean $is_simulator |
|
539 | 546 | * |
540 | 547 | * @version 2016-02-25 23:42:45 41a4.68 |
541 | 548 | */ |
@@ -278,6 +278,9 @@ |
||
278 | 278 | return count($this->ube_side_present_at_round_start); |
279 | 279 | } |
280 | 280 | |
281 | + /** |
|
282 | + * @param integer $round |
|
283 | + */ |
|
281 | 284 | public function ubeAnalyzeFleetOutcome($round) { |
282 | 285 | $this->ube_actualize_sides(); |
283 | 286 |
@@ -7,7 +7,7 @@ |
||
7 | 7 | /** |
8 | 8 | * @param UBE $ube |
9 | 9 | * |
10 | - * @return bool|string |
|
10 | + * @return false|string |
|
11 | 11 | * |
12 | 12 | * @version 2016-02-25 23:42:45 41a4.68 |
13 | 13 | */ |
@@ -151,6 +151,9 @@ |
||
151 | 151 | } |
152 | 152 | |
153 | 153 | |
154 | + /** |
|
155 | + * @param integer $user_id |
|
156 | + */ |
|
154 | 157 | public function __construct($user_id) { |
155 | 158 | $this->user_change($user_id); |
156 | 159 | } |
@@ -31,6 +31,9 @@ |
||
31 | 31 | |
32 | 32 | } |
33 | 33 | |
34 | + /** |
|
35 | + * @param integer $snId |
|
36 | + */ |
|
34 | 37 | public function unitAdd($snId, $level) { |
35 | 38 | if($this->indexIsSet($snId)) { |
36 | 39 | $this->indexGetObject($snId)->$level += $level; |
@@ -14,7 +14,6 @@ |
||
14 | 14 | * |
15 | 15 | * @param Fleet $objFleet |
16 | 16 | * @param bool $start |
17 | - * @param null $result |
|
18 | 17 | * |
19 | 18 | * @return mixed |
20 | 19 | */ |
@@ -9,7 +9,6 @@ |
||
9 | 9 | |
10 | 10 | /** |
11 | 11 | * @param Mission $objMission |
12 | - * @param array $mission_data |
|
13 | 12 | */ |
14 | 13 | function flt_mission_attack($objMission) { |
15 | 14 | $objFleet = $objMission->fleet; |
@@ -64,6 +64,10 @@ discard block |
||
64 | 64 | * |
65 | 65 | */ |
66 | 66 | // DEPRECATED |
67 | + |
|
68 | + /** |
|
69 | + * @param boolean $for_update |
|
70 | + */ |
|
67 | 71 | public static function dbGetFleetList($where_safe = '', $for_update = DB_SELECT_FOR_UPDATE) { |
68 | 72 | $fleetList = new static(); |
69 | 73 | $fleetList->dbLoadWhere($where_safe, $for_update); |
@@ -246,6 +250,7 @@ discard block |
||
246 | 250 | * LIST - Get missile attack list by condition |
247 | 251 | * |
248 | 252 | * @param string $where |
253 | + * @param boolean $for_update |
|
249 | 254 | */ |
250 | 255 | public function dbMergeMissileList($where, $for_update = DB_SELECT_FOR_UPDATE) { |
251 | 256 | $query = classSupernova::$db->doSelect( |