@@ -233,6 +233,9 @@ |
||
| 233 | 233 | |
| 234 | 234 | } |
| 235 | 235 | |
| 236 | + /** |
|
| 237 | + * @param \PDOStatement $statement |
|
| 238 | + */ |
|
| 236 | 239 | public function formatPlayerData($statement) |
| 237 | 240 | { |
| 238 | 241 | $results = []; |
@@ -3,13 +3,10 @@ |
||
| 3 | 3 | namespace Asylamba\Modules\Atlas\Repository; |
| 4 | 4 | |
| 5 | 5 | use Asylamba\Classes\Entity\AbstractRepository; |
| 6 | - |
|
| 7 | 6 | use Asylamba\Modules\Demeter\Model\Color; |
| 8 | - |
|
| 9 | 7 | use Asylamba\Modules\Ares\Model\Commander; |
| 10 | 8 | use Asylamba\Modules\Zeus\Model\Player; |
| 11 | 9 | use Asylamba\Modules\Atlas\Model\PlayerRanking; |
| 12 | - |
|
| 13 | 10 | use Asylamba\Classes\Library\Utils; |
| 14 | 11 | |
| 15 | 12 | class PlayerRankingRepository extends AbstractRepository |
@@ -40,6 +40,9 @@ discard block |
||
| 40 | 40 | $this->calculateTerritorialRanking($faction, $sectors); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @param \Asylamba\Modules\Atlas\Manager\FactionRankingManager $factionRankingManager |
|
| 45 | + */ |
|
| 43 | 46 | public function processResults(Ranking $ranking, $factions, $factionRankingManager) |
| 44 | 47 | { |
| 45 | 48 | #---------------- COMPUTING -------------------# |
@@ -193,6 +196,9 @@ discard block |
||
| 193 | 196 | $this->results[$faction->getId()]['wealth'] = $income; |
| 194 | 197 | } |
| 195 | 198 | |
| 199 | + /** |
|
| 200 | + * @param Color $faction |
|
| 201 | + */ |
|
| 196 | 202 | protected function calculateTerritorialRanking($faction, $sectors) |
| 197 | 203 | { |
| 198 | 204 | foreach ($sectors as $sector) { |
@@ -230,6 +236,9 @@ discard block |
||
| 230 | 236 | return ($a['points'] > $b['points']) ? -1 : 1; |
| 231 | 237 | } |
| 232 | 238 | |
| 239 | + /** |
|
| 240 | + * @param string $attribute |
|
| 241 | + */ |
|
| 233 | 242 | protected function setPositions($list, $attribute) { |
| 234 | 243 | $position = 1; |
| 235 | 244 | $index = 1; |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Asylamba\Modules\Atlas\Model\Ranking; |
| 6 | 6 | use Asylamba\Modules\Atlas\Model\FactionRanking; |
| 7 | 7 | use Asylamba\Modules\Demeter\Model\Color; |
| 8 | - |
|
| 9 | 8 | use Asylamba\Classes\Library\Utils; |
| 10 | 9 | |
| 11 | 10 | class FactionRoutine |
@@ -5,14 +5,10 @@ |
||
| 5 | 5 | use Asylamba\Modules\Athena\Helper\OrbitalBaseHelper; |
| 6 | 6 | use Asylamba\Modules\Athena\Resource\OrbitalBaseResource; |
| 7 | 7 | use Asylamba\Classes\Library\Game; |
| 8 | - |
|
| 9 | 8 | use Asylamba\Modules\Athena\Resource\ShipResource; |
| 10 | - |
|
| 11 | 9 | use Asylamba\Classes\Library\DataAnalysis; |
| 12 | - |
|
| 13 | 10 | use Asylamba\Modules\Atlas\Manager\PlayerRankingManager; |
| 14 | 11 | use Asylamba\Modules\Atlas\Repository\PlayerRankingRepository; |
| 15 | - |
|
| 16 | 12 | use Asylamba\Modules\Atlas\Model\Ranking; |
| 17 | 13 | use Asylamba\Modules\Atlas\Model\PlayerRanking; |
| 18 | 14 | |
@@ -15,15 +15,12 @@ |
||
| 15 | 15 | use Asylamba\Classes\Library\Utils; |
| 16 | 16 | use Asylamba\Classes\Library\Game; |
| 17 | 17 | use Asylamba\Classes\Library\Format; |
| 18 | - |
|
| 19 | 18 | use Asylamba\Modules\Hermes\Manager\NotificationManager; |
| 20 | - |
|
| 21 | 19 | use Asylamba\Modules\Gaia\Model\Place; |
| 22 | 20 | use Asylamba\Modules\Ares\Model\Commander; |
| 23 | 21 | use Asylamba\Modules\Ares\Model\Report; |
| 24 | 22 | use Asylamba\Modules\Hermes\Model\Notification; |
| 25 | 23 | use Asylamba\Modules\Gaia\Model\System; |
| 26 | - |
|
| 27 | 24 | use Asylamba\Modules\Gaia\Event\PlaceOwnerChangeEvent; |
| 28 | 25 | use Asylamba\Classes\Worker\EventDispatcher; |
| 29 | 26 | |
@@ -172,6 +172,9 @@ |
||
| 172 | 172 | return $this->entityManager->getRepository(Place::class)->turnAsEmptyPlace($place->getId()); |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | + /** |
|
| 176 | + * @param integer $playerId |
|
| 177 | + */ |
|
| 175 | 178 | public function turnAsSpawnPlace($placeId, $playerId) |
| 176 | 179 | { |
| 177 | 180 | $this->eventDispatcher->dispatch(new PlaceOwnerChangeEvent($this->get($placeId))); |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace Asylamba\Modules\Athena\Manager; |
| 13 | 13 | |
| 14 | 14 | use Asylamba\Classes\Entity\EntityManager; |
| 15 | - |
|
| 16 | 15 | use Asylamba\Modules\Athena\Model\RecyclingLog; |
| 17 | 16 | |
| 18 | 17 | class RecyclingLogManager { |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Asylamba\Classes\Entity\EntityManager; |
| 15 | 15 | use Asylamba\Classes\Scheduler\RealTimeActionScheduler; |
| 16 | - |
|
| 17 | 16 | use Asylamba\Modules\Athena\Model\RecyclingMission; |
| 18 | 17 | |
| 19 | 18 | class RecyclingMissionManager |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | 95 | * @param int $playerId |
| 96 | - * @return Session |
|
| 96 | + * @return null|\Asylamba\Classes\Library\Session\Session |
|
| 97 | 97 | */ |
| 98 | 98 | public function getSessionByPlayerId($playerId) |
| 99 | 99 | { |
@@ -3,10 +3,8 @@ |
||
| 3 | 3 | namespace Asylamba\Classes\Daemon; |
| 4 | 4 | |
| 5 | 5 | use Asylamba\Classes\Daemon\Client; |
| 6 | - |
|
| 7 | 6 | use Asylamba\Classes\Redis\RedisManager; |
| 8 | 7 | use Asylamba\Classes\Library\Session\SessionWrapper; |
| 9 | - |
|
| 10 | 8 | use Asylamba\Classes\Library\Http\Request; |
| 11 | 9 | |
| 12 | 10 | class ClientManager |
@@ -3,12 +3,9 @@ |
||
| 3 | 3 | namespace Asylamba\Classes\EventListener; |
| 4 | 4 | |
| 5 | 5 | use Asylamba\Classes\Logger\AbstractLogger; |
| 6 | - |
|
| 7 | 6 | use Asylamba\Classes\Event\ProcessExceptionEvent; |
| 8 | 7 | use Asylamba\Classes\Event\ProcessErrorEvent; |
| 9 | - |
|
| 10 | 8 | use Asylamba\Classes\Process\ProcessGateway; |
| 11 | - |
|
| 12 | 9 | use Asylamba\Classes\Database\Database; |
| 13 | 10 | |
| 14 | 11 | class ProcessExceptionListener { |
@@ -32,6 +32,9 @@ discard block |
||
| 32 | 32 | $this->security = $security; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param string $api |
|
| 37 | + */ |
|
| 35 | 38 | private function query($api, $args) { |
| 36 | 39 | $targ = ''; |
| 37 | 40 | $ch = curl_init(); |
@@ -91,6 +94,10 @@ discard block |
||
| 91 | 94 | } |
| 92 | 95 | } |
| 93 | 96 | |
| 97 | + /** |
|
| 98 | + * @param integer $bindkey |
|
| 99 | + * @param string $serverId |
|
| 100 | + */ |
|
| 94 | 101 | public function playerIsDead($bindkey, $serverId) { |
| 95 | 102 | if ($this->query('playerisdead', array('bindkey' => $bindkey, 'serverid' => $serverId))) { |
| 96 | 103 | if ($this->data['statement'] == 'success') { |