@@ -57,6 +57,9 @@ |
||
| 57 | 57 | return (in_array($ship, self::$femaleShipNames)) ? TRUE : FALSE; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | + /** |
|
| 61 | + * @param string $info |
|
| 62 | + */ |
|
| 60 | 63 | public static function getInfo($shipNumber, $info) { |
| 61 | 64 | if(self::isAShip($shipNumber)) { |
| 62 | 65 | if(in_array($info, array('codeName', 'name', 'class', 'pev', 'life', 'speed', 'defense', 'attack', 'cost', 'time', 'resourcePrice', 'points', 'imageLink', 'techno', 'description'))) { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Asylamba\Classes\Worker\CTR; |
| 6 | 6 | use Asylamba\Classes\Worker\ASM; |
| 7 | - |
|
| 8 | 7 | use Asylamba\Modules\Demeter\Resource\ColorResource; |
| 9 | 8 | use Asylamba\Modules\Promethee\Resource\TechnologyResource; |
| 10 | 9 | |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use Asylamba\Classes\Worker\Manager; |
| 15 | 15 | use Asylamba\Classes\Database\Database; |
| 16 | 16 | use Asylamba\Classes\Library\Utils; |
| 17 | - |
|
| 18 | 17 | use Asylamba\Modules\Demeter\Model\Election\Candidate; |
| 19 | 18 | |
| 20 | 19 | class CandidateManager extends Manager { |
@@ -81,6 +81,9 @@ |
||
| 81 | 81 | } |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | + /** |
|
| 85 | + * @param Election $newElection |
|
| 86 | + */ |
|
| 84 | 87 | public function add($newElection) { |
| 85 | 88 | $db = Database::getInstance(); |
| 86 | 89 | |
@@ -210,6 +210,9 @@ |
||
| 210 | 210 | ASM::$pam->changeSession($_PAM1); |
| 211 | 211 | } |
| 212 | 212 | |
| 213 | + /** |
|
| 214 | + * @param string $date |
|
| 215 | + */ |
|
| 213 | 216 | private function ballot($date, $election) { |
| 214 | 217 | $_PAM_1 = ASM::$pam->getCurrentsession(); |
| 215 | 218 | ASM::$pam->newSession(FALSE); |
@@ -7,9 +7,7 @@ |
||
| 7 | 7 | use Asylamba\Classes\Library\Chronos; |
| 8 | 8 | use Asylamba\Classes\Library\Game; |
| 9 | 9 | use Asylamba\Classes\Library\Format; |
| 10 | - |
|
| 11 | 10 | use Asylamba\Modules\Promethee\Model\Technology; |
| 12 | - |
|
| 13 | 11 | use Asylamba\Modules\Promethee\Resource\TechnologyResource; |
| 14 | 12 | use Asylamba\Modules\Athena\Resource\OrbitalBaseResource; |
| 15 | 13 | |
@@ -123,6 +123,9 @@ discard block |
||
| 123 | 123 | return $rt; |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | + /** |
|
| 127 | + * @param string $text |
|
| 128 | + */ |
|
| 126 | 129 | private static function log($text) { |
| 127 | 130 | self::$output = self::$output . ">_ " . $text . "<br />"; |
| 128 | 131 | } |
@@ -448,6 +451,9 @@ discard block |
||
| 448 | 451 | } |
| 449 | 452 | } |
| 450 | 453 | |
| 454 | + /** |
|
| 455 | + * @param double $d2o |
|
| 456 | + */ |
|
| 451 | 457 | private static function isPointInMap($d2o) { |
| 452 | 458 | $mask = rand(1, GalaxyConfiguration::$galaxy['mask']); |
| 453 | 459 | |
@@ -473,6 +479,10 @@ discard block |
||
| 473 | 479 | return (pow($x1 - $y1, 2) + pow($x2 - $y2, 2)); |
| 474 | 480 | } |
| 475 | 481 | |
| 482 | + /** |
|
| 483 | + * @param integer $p1 |
|
| 484 | + * @param integer $p2 |
|
| 485 | + */ |
|
| 476 | 486 | private static function distToSegment($p1, $p2, $v1, $v2, $w1, $w2) { |
| 477 | 487 | $l2 = self::l2p($v1, $v2, $w1, $w2); |
| 478 | 488 | |
@@ -496,6 +506,9 @@ discard block |
||
| 496 | 506 | return sqrt(self::l2p($p1, $p2, $tx, $ty)); |
| 497 | 507 | } |
| 498 | 508 | |
| 509 | + /** |
|
| 510 | + * @param integer $value |
|
| 511 | + */ |
|
| 499 | 512 | private static function getProportion($params, $value) { |
| 500 | 513 | $cursor = 0; |
| 501 | 514 | $type = 0; |
@@ -4,10 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Asylamba\Classes\Database\DatabaseAdmin; |
| 6 | 6 | use Asylamba\Classes\Library\Utils; |
| 7 | - |
|
| 8 | 7 | use Asylamba\Modules\Gaia\Helper\GalaxyGenerator; |
| 9 | 8 | use GalaxyConfiguration; |
| 10 | - |
|
| 11 | 9 | use Asylamba\Modules\Gaia\Model\PointLocation; |
| 12 | 10 | use Asylamba\Modules\Gaia\Model\Place; |
| 13 | 11 | use Asylamba\Classes\Library\Format; |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | use Asylamba\Classes\Worker\Manager; |
| 17 | 17 | use Asylamba\Classes\Library\Utils; |
| 18 | 18 | use Asylamba\Classes\Database\Database; |
| 19 | - |
|
| 20 | 19 | use Asylamba\Modules\Gaia\Model\Place; |
| 21 | 20 | |
| 22 | 21 | class PlaceManager extends Manager { |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use Asylamba\Classes\Worker\Manager; |
| 15 | 15 | use Asylamba\Classes\Database\Database; |
| 16 | 16 | use Asylamba\Classes\Library\Utils; |
| 17 | - |
|
| 18 | 17 | use Asylamba\Modules\Gaia\Model\System; |
| 19 | 18 | |
| 20 | 19 | class SystemManager extends Manager { |
@@ -948,6 +948,9 @@ discard block |
||
| 948 | 948 | return $report; |
| 949 | 949 | } |
| 950 | 950 | |
| 951 | + /** |
|
| 952 | + * @param integer $case |
|
| 953 | + */ |
|
| 951 | 954 | private function sendNotif($case, $commander, $report = NULL) { |
| 952 | 955 | switch ($case) { |
| 953 | 956 | case self::CHANGESUCCESS: |
@@ -1251,6 +1254,9 @@ discard block |
||
| 1251 | 1254 | } |
| 1252 | 1255 | } |
| 1253 | 1256 | |
| 1257 | + /** |
|
| 1258 | + * @param integer $case |
|
| 1259 | + */ |
|
| 1254 | 1260 | private function sendNotifForConquest($case, $commander, $reports = array()) { |
| 1255 | 1261 | $nbrBattle = count($reports); |
| 1256 | 1262 | switch($case) { |
@@ -16,7 +16,6 @@ discard block |
||
| 16 | 16 | use Asylamba\Classes\Library\Game; |
| 17 | 17 | use Asylamba\Classes\Library\Utils; |
| 18 | 18 | use Asylamba\Classes\Library\Format; |
| 19 | - |
|
| 20 | 19 | use Asylamba\Modules\Ares\FightController; |
| 21 | 20 | use Asylamba\Modules\Zeus\Model\PlayerBonus; |
| 22 | 21 | use Asylamba\Modules\Ares\Model\Commander; |
@@ -25,7 +24,6 @@ discard block |
||
| 25 | 24 | use Asylamba\Modules\Ares\Model\Report; |
| 26 | 25 | use Asylamba\Modules\Hermes\Model\Notification; |
| 27 | 26 | use Asylamba\Modules\Demeter\Model\Color; |
| 28 | - |
|
| 29 | 27 | use Asylamba\Modules\Gaia\Resource\SquadronResource; |
| 30 | 28 | |
| 31 | 29 | class Place { |