@@ -54,7 +54,6 @@ |
||
54 | 54 | |
55 | 55 | /** |
56 | 56 | * @param Request $request |
57 | - * @param Client $client |
|
58 | 57 | * @return Response |
59 | 58 | */ |
60 | 59 | public function processRequest(Request $request) |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Asylamba\Classes\Task; |
4 | 4 | |
5 | 5 | use Asylamba\Classes\DependencyInjection\Container; |
6 | - |
|
7 | 6 | use Asylamba\Classes\Process\Process; |
8 | 7 | |
9 | 8 | class TaskManager |
@@ -26,6 +26,9 @@ |
||
26 | 26 | $this->security = $security; |
27 | 27 | } |
28 | 28 | |
29 | + /** |
|
30 | + * @param string $api |
|
31 | + */ |
|
29 | 32 | private function query($api, $args) { |
30 | 33 | $targ = ''; |
31 | 34 | $ch = curl_init(); |
@@ -25,6 +25,9 @@ |
||
25 | 25 | $this->newSession(); |
26 | 26 | } |
27 | 27 | |
28 | + /** |
|
29 | + * @param boolean $uMode |
|
30 | + */ |
|
28 | 31 | public function newSession($uMode = ASM_UMODE) { |
29 | 32 | $this->statSessions++; |
30 | 33 | $this->statChangeSessions++; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Asylamba\Classes\Worker; |
4 | 4 | |
5 | 5 | use Asylamba\Classes\Library\Bug; |
6 | - |
|
7 | 6 | use Asylamba\Classes\Database\Database; |
8 | 7 | |
9 | 8 | abstract class Manager { |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Asylamba\Modules\Promethee\Model\Research; |
6 | 6 | use Asylamba\Modules\Athena\Model\OrbitalBase; |
7 | 7 | use Asylamba\Modules\Promethee\Model\Technology; |
8 | -use Asylamba\Classes\Worker\API; |
|
9 | 8 | use Asylamba\Modules\Hermes\Model\ConversationUser; |
10 | 9 | use Asylamba\Modules\Gaia\Event\PlaceOwnerChangeEvent; |
11 | 10 |
@@ -343,6 +343,10 @@ discard block |
||
343 | 343 | $this->entityManager->flush(Commander::class); |
344 | 344 | } |
345 | 345 | |
346 | + /** |
|
347 | + * @param integer $rStartPlace |
|
348 | + * @param double $duration |
|
349 | + */ |
|
346 | 350 | public function move(Commander $commander, $rDestinationPlace, $rStartPlace, $travelType, $travelLength, $duration) { |
347 | 351 | $commander->rDestinationPlace = $rDestinationPlace; |
348 | 352 | $commander->rStartPlace = $rStartPlace; |
@@ -366,6 +370,9 @@ discard block |
||
366 | 370 | return TRUE; |
367 | 371 | } |
368 | 372 | |
373 | + /** |
|
374 | + * @param boolean $isWinner |
|
375 | + */ |
|
369 | 376 | public function resultOfFight(Commander $commander, $isWinner, $enemyCommander) { |
370 | 377 | if ($isWinner == TRUE) { |
371 | 378 | $this->setEarnedExperience($commander, $enemyCommander); |
@@ -908,6 +915,12 @@ discard block |
||
908 | 915 | # HELPER |
909 | 916 | |
910 | 917 | # comeBack |
918 | + |
|
919 | + /** |
|
920 | + * @param Commander $commander |
|
921 | + * @param Place $commanderPlace |
|
922 | + * @param PlayerBonus $playerBonus |
|
923 | + */ |
|
911 | 924 | public function comeBack(Place $place, $commander, $commanderPlace, $playerBonus) { |
912 | 925 | $length = Game::getDistance($place->getXSystem(), $commanderPlace->getXSystem(), $place->getYSystem(), $commanderPlace->getYSystem()); |
913 | 926 | $duration = Game::getTimeToTravel($commanderPlace, $place, $playerBonus->bonus); |
@@ -917,6 +930,10 @@ discard block |
||
917 | 930 | $this->move($commander, $commander->rBase, $place->id, Commander::BACK, $length, $duration); |
918 | 931 | } |
919 | 932 | |
933 | + /** |
|
934 | + * @param Commander $commander |
|
935 | + * @param PlayerBonus $playerBonus |
|
936 | + */ |
|
920 | 937 | private function lootAnEmptyPlace(Place $place, $commander, $playerBonus) { |
921 | 938 | $bonus = $playerBonus->bonus->get(PlayerBonus::SHIP_CONTAINER); |
922 | 939 | |
@@ -932,6 +949,11 @@ discard block |
||
932 | 949 | LiveReport::$resources = $resourcesLooted; |
933 | 950 | } |
934 | 951 | |
952 | + /** |
|
953 | + * @param Commander $commander |
|
954 | + * @param PlayerBonus $playerBonus |
|
955 | + * @param OrbitalBase $placeBase |
|
956 | + */ |
|
935 | 957 | private function lootAPlayerPlace($commander, $playerBonus, $placeBase) { |
936 | 958 | $bonus = $playerBonus->bonus->get(PlayerBonus::SHIP_CONTAINER); |
937 | 959 | |
@@ -951,6 +973,11 @@ discard block |
||
951 | 973 | } |
952 | 974 | } |
953 | 975 | |
976 | + /** |
|
977 | + * @param Commander $commander |
|
978 | + * @param \Asylamba\Modules\Zeus\Model\Player $player |
|
979 | + * @param \Asylamba\Modules\Zeus\Model\Player $enemyPlayer |
|
980 | + */ |
|
954 | 981 | private function startFight(Place $place, $commander, $player, $enemyCommander = NULL, $enemyPlayer = NULL, $pvp = FALSE) { |
955 | 982 | if ($pvp == TRUE) { |
956 | 983 | $commander->setArmy(); |
@@ -22,11 +22,8 @@ discard block |
||
22 | 22 | use Asylamba\Modules\Gaia\Manager\PlaceManager; |
23 | 23 | use Asylamba\Modules\Demeter\Manager\ColorManager; |
24 | 24 | use Asylamba\Modules\Hermes\Manager\NotificationManager; |
25 | -use Asylamba\Classes\Library\Session\SessionWrapper; |
|
26 | 25 | use Asylamba\Classes\Container\ArrayList; |
27 | - |
|
28 | 26 | use Asylamba\Classes\Worker\EventDispatcher; |
29 | - |
|
30 | 27 | use Asylamba\Modules\Athena\Model\OrbitalBase; |
31 | 28 | use Asylamba\Modules\Gaia\Model\Place; |
32 | 29 | use Asylamba\Modules\Ares\Model\Report; |
@@ -35,9 +32,7 @@ discard block |
||
35 | 32 | use Asylamba\Modules\Ares\Model\Commander; |
36 | 33 | use Asylamba\Modules\Gaia\Resource\SquadronResource; |
37 | 34 | use Asylamba\Modules\Demeter\Model\Color; |
38 | - |
|
39 | 35 | use Asylamba\Classes\Scheduler\RealTimeActionScheduler; |
40 | - |
|
41 | 36 | use Asylamba\Modules\Gaia\Event\PlaceOwnerChangeEvent; |
42 | 37 | |
43 | 38 | class CommanderManager |
@@ -13,7 +13,6 @@ |
||
13 | 13 | namespace Asylamba\Modules\Ares\Manager; |
14 | 14 | |
15 | 15 | use Asylamba\Classes\Entity\EntityManager; |
16 | - |
|
17 | 16 | use Asylamba\Modules\Ares\Model\Report; |
18 | 17 | |
19 | 18 | class ReportManager { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Asylamba\Modules\Ares\Manager; |
4 | 4 | |
5 | 5 | use Asylamba\Classes\Entity\EntityManager; |
6 | - |
|
7 | 6 | use Asylamba\Modules\Ares\Model\Commander; |
8 | 7 | use Asylamba\Modules\Ares\Model\Squadron; |
9 | 8 |
@@ -795,6 +795,9 @@ |
||
795 | 795 | } |
796 | 796 | } |
797 | 797 | |
798 | + /** |
|
799 | + * @param integer $i |
|
800 | + */ |
|
798 | 801 | public function getSquadron($i) |
799 | 802 | { |
800 | 803 | $this->setArmy(); |