@@ -11,8 +11,6 @@ |
||
11 | 11 | */ |
12 | 12 | namespace Asylamba\Modules\Promethee\Model; |
13 | 13 | |
14 | -use Asylamba\Modules\Promethee\Resource\TechnologyResource; |
|
15 | - |
|
16 | 14 | class Technology { |
17 | 15 | // ATTRIBUTES |
18 | 16 | public $rPlayer; |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace Asylamba\Modules\Zeus\Helper; |
13 | 13 | |
14 | 14 | use Asylamba\Classes\Library\Session\SessionWrapper; |
15 | - |
|
16 | 15 | use Asylamba\Classes\Entity\EntityManager; |
17 | 16 | use Asylamba\Modules\Zeus\Manager\PlayerManager; |
18 | 17 | use Asylamba\Modules\Athena\Manager\OrbitalBaseManager; |
@@ -266,6 +266,10 @@ |
||
266 | 266 | } |
267 | 267 | } |
268 | 268 | |
269 | + /** |
|
270 | + * @param integer $techno |
|
271 | + * @param string $level |
|
272 | + */ |
|
269 | 273 | public function updateTechnoBonus(PlayerBonus $playerBonus, $techno, $level) { |
270 | 274 | switch ($techno) { |
271 | 275 | case Technology::GENERATOR_SPEED: $bonusId = PlayerBonus::GENERATOR_SPEED; break; |
@@ -3,21 +3,17 @@ |
||
3 | 3 | namespace Asylamba\Modules\Zeus\Manager; |
4 | 4 | |
5 | 5 | use Asylamba\Classes\Exception\ErrorException; |
6 | - |
|
7 | 6 | use Asylamba\Classes\Container\StackList; |
8 | - |
|
9 | 7 | use Asylamba\Modules\Zeus\Model\Player; |
10 | 8 | use Asylamba\Modules\Zeus\Model\PlayerBonus; |
11 | 9 | use Asylamba\Modules\Promethee\Model\Technology; |
12 | 10 | use Asylamba\Modules\Demeter\Model\Law\Law; |
13 | 11 | use Asylamba\Modules\Demeter\Resource\LawResources; |
14 | - |
|
15 | 12 | use Asylamba\Modules\Demeter\Manager\Law\LawManager; |
16 | 13 | use Asylamba\Modules\Demeter\Manager\ColorManager; |
17 | 14 | use Asylamba\Modules\Promethee\Manager\TechnologyManager; |
18 | 15 | use Asylamba\Modules\Promethee\Helper\TechnologyHelper; |
19 | 16 | use Asylamba\Classes\Library\Session\SessionWrapper; |
20 | - |
|
21 | 17 | use Asylamba\Modules\Demeter\Resource\ColorResource; |
22 | 18 | |
23 | 19 | class PlayerBonusManager |
@@ -348,6 +348,9 @@ discard block |
||
348 | 348 | $this->entityManager->flush($player); |
349 | 349 | } |
350 | 350 | |
351 | + /** |
|
352 | + * @param Player $playerId |
|
353 | + */ |
|
351 | 354 | public function kill($playerId) { |
352 | 355 | $player = $this->get($playerId); |
353 | 356 | |
@@ -533,6 +536,10 @@ discard block |
||
533 | 536 | $this->entityManager->flush(Color::class); |
534 | 537 | } |
535 | 538 | |
539 | + /** |
|
540 | + * @param PlayerBonus $playerBonus |
|
541 | + * @param \Asylamba\Classes\Worker\ManagerSession $rsmSession |
|
542 | + */ |
|
536 | 543 | public function uCredit(Player $player, $playerBases, $playerBonus, $commanders, $rsmSession, $factions, $transactions) { |
537 | 544 | |
538 | 545 | $popTax = 0; $nationTax = 0; |
@@ -15,7 +15,6 @@ discard block |
||
15 | 15 | use Asylamba\Classes\Library\Utils; |
16 | 16 | use Asylamba\Classes\Entity\EntityManager; |
17 | 17 | use Asylamba\Classes\Library\Session\SessionWrapper; |
18 | - |
|
19 | 18 | use Asylamba\Modules\Zeus\Model\Player; |
20 | 19 | use Asylamba\Modules\Zeus\Model\PlayerBonus; |
21 | 20 | use Asylamba\Modules\Promethee\Model\Technology; |
@@ -23,7 +22,6 @@ discard block |
||
23 | 22 | use Asylamba\Modules\Hermes\Model\Notification; |
24 | 23 | use Asylamba\Modules\Ares\Model\Commander; |
25 | 24 | use Asylamba\Modules\Athena\Model\Transaction; |
26 | - |
|
27 | 25 | use Asylamba\Modules\Demeter\Manager\ColorManager; |
28 | 26 | use Asylamba\Modules\Ares\Manager\CommanderManager; |
29 | 27 | use Asylamba\Modules\Gaia\Manager\GalaxyColorManager; |
@@ -36,10 +34,8 @@ discard block |
||
36 | 34 | use Asylamba\Modules\Athena\Manager\CommercialRouteManager; |
37 | 35 | use Asylamba\Modules\Promethee\Manager\TechnologyManager; |
38 | 36 | use Asylamba\Modules\Athena\Resource\ShipResource; |
39 | - |
|
40 | 37 | use Asylamba\Classes\Library\Game; |
41 | 38 | use Asylamba\Classes\Container\ArrayList; |
42 | - |
|
43 | 39 | use Asylamba\Classes\Exception\ErrorException; |
44 | 40 | |
45 | 41 | class PlayerManager { |
@@ -500,7 +500,7 @@ |
||
500 | 500 | } |
501 | 501 | |
502 | 502 | /** |
503 | - * @param Player $playerId |
|
503 | + * @param Player $player |
|
504 | 504 | * @param int $credits |
505 | 505 | * @param string $operator |
506 | 506 | */ |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Asylamba\Modules\Zeus\Repository; |
4 | 4 | |
5 | 5 | use Asylamba\Classes\Entity\AbstractRepository; |
6 | - |
|
7 | 6 | use Asylamba\Modules\Zeus\Model\Player; |
8 | 7 | |
9 | 8 | class PlayerRepository extends AbstractRepository { |
@@ -14,7 +14,6 @@ |
||
14 | 14 | |
15 | 15 | /** |
16 | 16 | * @param FileLocatorInterface $locator |
17 | - * @param string $format |
|
18 | 17 | */ |
19 | 18 | public function __construct(FileLocatorInterface $locator) { |
20 | 19 | $this->locator = $locator; |