@@ -5,9 +5,7 @@ |
||
| 5 | 5 | use Asylamba\Modules\Gaia\Manager\SystemManager; |
| 6 | 6 | use Asylamba\Modules\Zeus\Manager\PlayerManager; |
| 7 | 7 | use Asylamba\Modules\Athena\Manager\OrbitalBaseManager; |
| 8 | - |
|
| 9 | 8 | use Asylamba\Classes\Entity\EntityManager; |
| 10 | - |
|
| 11 | 9 | use Asylamba\Modules\Gaia\Event\PlaceOwnerChangeEvent; |
| 12 | 10 | |
| 13 | 11 | class SystemListener |
@@ -5,13 +5,10 @@ |
||
| 5 | 5 | use Asylamba\Classes\Library\Chronos; |
| 6 | 6 | use Asylamba\Classes\Library\Game; |
| 7 | 7 | use Asylamba\Classes\Library\Format; |
| 8 | - |
|
| 9 | 8 | use Asylamba\Modules\Promethee\Model\Technology; |
| 10 | - |
|
| 11 | 9 | use Asylamba\Modules\Promethee\Resource\TechnologyResource; |
| 12 | 10 | use Asylamba\Modules\Athena\Resource\OrbitalBaseResource; |
| 13 | 11 | use Asylamba\Modules\Athena\Helper\OrbitalBaseHelper; |
| 14 | - |
|
| 15 | 12 | use Asylamba\Modules\Ares\Manager\CommanderManager; |
| 16 | 13 | use Asylamba\Modules\Athena\Manager\CommercialRouteManager; |
| 17 | 14 | use Asylamba\Classes\Library\Session\SessionWrapper; |
@@ -133,6 +133,9 @@ discard block |
||
| 133 | 133 | return $rt; |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | + /** |
|
| 137 | + * @param string $text |
|
| 138 | + */ |
|
| 136 | 139 | private function log($text) { |
| 137 | 140 | $this->output .= ">_ $text <br />"; |
| 138 | 141 | } |
@@ -456,6 +459,9 @@ discard block |
||
| 456 | 459 | } |
| 457 | 460 | } |
| 458 | 461 | |
| 462 | + /** |
|
| 463 | + * @param double $d2o |
|
| 464 | + */ |
|
| 459 | 465 | protected function isPointInMap($d2o) { |
| 460 | 466 | $mask = rand(1, $this->galaxyConfiguration->galaxy['mask']); |
| 461 | 467 | |
@@ -481,6 +487,10 @@ discard block |
||
| 481 | 487 | return (pow($x1 - $y1, 2) + pow($x2 - $y2, 2)); |
| 482 | 488 | } |
| 483 | 489 | |
| 490 | + /** |
|
| 491 | + * @param integer $p1 |
|
| 492 | + * @param integer $p2 |
|
| 493 | + */ |
|
| 484 | 494 | protected function distToSegment($p1, $p2, $v1, $v2, $w1, $w2) { |
| 485 | 495 | $l2 = $this->l2p($v1, $v2, $w1, $w2); |
| 486 | 496 | |
@@ -504,6 +514,9 @@ discard block |
||
| 504 | 514 | return sqrt($this->l2p($p1, $p2, $tx, $ty)); |
| 505 | 515 | } |
| 506 | 516 | |
| 517 | + /** |
|
| 518 | + * @param integer $value |
|
| 519 | + */ |
|
| 507 | 520 | protected function getProportion($params, $value) { |
| 508 | 521 | $cursor = 0; |
| 509 | 522 | $type = 0; |
@@ -4,9 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Asylamba\Classes\Database\DatabaseAdmin; |
| 6 | 6 | use Asylamba\Classes\Library\Utils; |
| 7 | - |
|
| 8 | 7 | use Asylamba\Modules\Gaia\Galaxy\GalaxyConfiguration; |
| 9 | - |
|
| 10 | 8 | use Asylamba\Modules\Gaia\Model\PointLocation; |
| 11 | 9 | use Asylamba\Modules\Gaia\Model\Place; |
| 12 | 10 | use Asylamba\Classes\Library\Format; |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace Asylamba\Modules\Gaia\Manager; |
| 13 | 13 | |
| 14 | 14 | use Asylamba\Classes\Entity\EntityManager; |
| 15 | - |
|
| 16 | 15 | use Asylamba\Modules\Gaia\Model\Sector; |
| 17 | 16 | |
| 18 | 17 | class SectorManager { |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace Asylamba\Modules\Gaia\Manager; |
| 13 | 13 | |
| 14 | 14 | use Asylamba\Classes\Entity\EntityManager; |
| 15 | - |
|
| 16 | 15 | use Asylamba\Modules\Gaia\Model\System; |
| 17 | 16 | |
| 18 | 17 | class SystemManager { |
@@ -5,8 +5,6 @@ |
||
| 5 | 5 | use Asylamba\Classes\Worker\Manager; |
| 6 | 6 | use Asylamba\Classes\Library\Utils; |
| 7 | 7 | use Asylamba\Classes\Database\Database; |
| 8 | -use Asylamba\Classes\Worker\ASM; |
|
| 9 | - |
|
| 10 | 8 | use Asylamba\Modules\Hermes\Model\Conversation; |
| 11 | 9 | |
| 12 | 10 | class ConversationManager extends Manager { |
@@ -46,6 +46,11 @@ |
||
| 46 | 46 | return $this->entityManager->getRepository(Notification::class)->getAllByReadState($isReaded); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | + /** |
|
| 50 | + * @param integer $commanderPlayerId |
|
| 51 | + * @param integer $placePlayerId |
|
| 52 | + * @param string $arrivedAt |
|
| 53 | + */ |
|
| 49 | 54 | public function patchForMultiCombats($commanderPlayerId, $placePlayerId, $arrivedAt) |
| 50 | 55 | { |
| 51 | 56 | $notifications = $this |
@@ -26,6 +26,10 @@ discard block |
||
| 26 | 26 | return in_array($research, ResearchResource::$availableResearch); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @param integer $research |
|
| 31 | + * @param string $info |
|
| 32 | + */ |
|
| 29 | 33 | public function getInfo($research, $info, $level = 0, $sup = 'delfault') { |
| 30 | 34 | if ($this->isAResearch($research)) { |
| 31 | 35 | if ($info == 'name' || $info == 'codeName') { |
@@ -46,6 +50,10 @@ discard block |
||
| 46 | 50 | return FALSE; |
| 47 | 51 | } |
| 48 | 52 | |
| 53 | + /** |
|
| 54 | + * @param integer $firstLevel |
|
| 55 | + * @param integer $secondLevel |
|
| 56 | + */ |
|
| 49 | 57 | public function isResearchPermit($firstLevel, $secondLevel, $thirdLevel = -1) { |
| 50 | 58 | // compare the levels of technos and say if you can research such techno |
| 51 | 59 | if ($thirdLevel == -1) { |
@@ -65,6 +73,9 @@ discard block |
||
| 65 | 73 | } |
| 66 | 74 | } |
| 67 | 75 | |
| 76 | + /** |
|
| 77 | + * @param integer $level |
|
| 78 | + */ |
|
| 68 | 79 | private function researchPrice($research, $level) { |
| 69 | 80 | switch ($research) { |
| 70 | 81 | case 0 : |
@@ -44,6 +44,9 @@ |
||
| 44 | 44 | return in_array($techno, TechnologyResource::$technologiesNotDisplayed); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | + /** |
|
| 48 | + * @param string $info |
|
| 49 | + */ |
|
| 47 | 50 | public function getInfo($techno, $info, $level = 0) { |
| 48 | 51 | if ($this->isATechnology($techno)) { |
| 49 | 52 | if ($this->isAnUnblockingTechnology($techno)) { |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | use Asylamba\Classes\Container\ArrayList; |
| 10 | 10 | use Asylamba\Modules\Promethee\Model\Technology; |
| 11 | 11 | use Asylamba\Modules\Promethee\Resource\TechnologyResource; |
| 12 | - |
|
| 13 | 12 | use Asylamba\Classes\Exception\ErrorException; |
| 14 | 13 | |
| 15 | 14 | class TechnologyHelper { |