@@ -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 { |
@@ -5,6 +5,9 @@ |
||
| 5 | 5 | Class PointLocation { |
| 6 | 6 | var $pointOnVertex; |
| 7 | 7 | |
| 8 | + /** |
|
| 9 | + * @param string $point |
|
| 10 | + */ |
|
| 8 | 11 | function pointInPolygon($point, $polygon, $pointOnVertex = TRUE) { |
| 9 | 12 | $this->pointOnVertex = $pointOnVertex; |
| 10 | 13 | |
@@ -5,6 +5,11 @@ |
||
| 5 | 5 | use Asylamba\Classes\Library\Utils; |
| 6 | 6 | |
| 7 | 7 | class SquadronResource { |
| 8 | + |
|
| 9 | + /** |
|
| 10 | + * @param double $level |
|
| 11 | + * @param integer $aleaNbr |
|
| 12 | + */ |
|
| 8 | 13 | public static function get($level, $aleaNbr) { |
| 9 | 14 | while ($aleaNbr >= self::size()) { |
| 10 | 15 | $aleaNbr -= self::size(); |
@@ -55,6 +55,9 @@ |
||
| 55 | 55 | return $this->rPlayer; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | + /** |
|
| 59 | + * @param integer $id |
|
| 60 | + */ |
|
| 58 | 61 | public function getLevel($id) { |
| 59 | 62 | if (ResearchResource::isAResearch($id)) { |
| 60 | 63 | switch ($id) { |
@@ -17,6 +17,10 @@ discard block |
||
| 17 | 17 | return (in_array($research, self::$availableResearch)) ? TRUE : FALSE; |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | + /** |
|
| 21 | + * @param integer $research |
|
| 22 | + * @param string $info |
|
| 23 | + */ |
|
| 20 | 24 | public static function getInfo($research, $info, $level = 0, $sup = 'delfault') { |
| 21 | 25 | if (self::isAResearch($research)) { |
| 22 | 26 | if ($info == 'name' || $info == 'codeName') { |
@@ -37,6 +41,10 @@ discard block |
||
| 37 | 41 | return FALSE; |
| 38 | 42 | } |
| 39 | 43 | |
| 44 | + /** |
|
| 45 | + * @param integer $firstLevel |
|
| 46 | + * @param integer $secondLevel |
|
| 47 | + */ |
|
| 40 | 48 | public static function isResearchPermit($firstLevel, $secondLevel, $thirdLevel = -1) { |
| 41 | 49 | // compare the levels of technos and say if you can research such techno |
| 42 | 50 | if ($thirdLevel == -1) { |
@@ -56,6 +64,9 @@ discard block |
||
| 56 | 64 | } |
| 57 | 65 | } |
| 58 | 66 | |
| 67 | + /** |
|
| 68 | + * @param integer $level |
|
| 69 | + */ |
|
| 59 | 70 | private static function researchPrice($research, $level) { |
| 60 | 71 | switch ($research) { |
| 61 | 72 | case 0 : |
@@ -29,6 +29,9 @@ |
||
| 29 | 29 | return (in_array($techno, self::$technologiesNotDisplayed)) ? TRUE : FALSE; |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | + /** |
|
| 33 | + * @param string $info |
|
| 34 | + */ |
|
| 32 | 35 | public static function getInfo($techno, $info, $level = 0) { |
| 33 | 36 | if (self::isATechnology($techno)) { |
| 34 | 37 | if (self::isAnUnblockingTechnology($techno)) { |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use Asylamba\Classes\Worker\Manager; |
| 15 | 15 | use Asylamba\Classes\Library\Utils; |
| 16 | 16 | use Asylamba\Classes\Database\Database; |
| 17 | - |
|
| 18 | 17 | use Asylamba\Modules\Zeus\Model\CreditTransaction; |
| 19 | 18 | |
| 20 | 19 | class CreditTransactionManager extends Manager { |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use Asylamba\Classes\Worker\Manager; |
| 15 | 15 | use Asylamba\Classes\Library\Utils; |
| 16 | 16 | use Asylamba\Classes\Database\Database; |
| 17 | - |
|
| 18 | 17 | use Asylamba\Modules\Zeus\Model\CreditTransaction; |
| 19 | 18 | |
| 20 | 19 | class CreditTransactionManager extends Manager { |
@@ -152,6 +152,9 @@ |
||
| 152 | 152 | $this->addTechnoToBonus(Technology::DESTROYER_DEFENSE, self::DESTROYER_DEFENSE); |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | + /** |
|
| 156 | + * @param integer $bonus |
|
| 157 | + */ |
|
| 155 | 158 | private function addTechnoToBonus($techno, $bonus) { |
| 156 | 159 | $totalBonus = 0; |
| 157 | 160 | for ($i = 0; $i <= $this->technology->getTechnology($techno); $i++) { |
@@ -14,12 +14,9 @@ |
||
| 14 | 14 | |
| 15 | 15 | use Asylamba\Classes\Worker\CTR; |
| 16 | 16 | use Asylamba\Classes\Worker\ASM; |
| 17 | - |
|
| 18 | 17 | use Asylamba\Classes\Container\StackList; |
| 19 | - |
|
| 20 | 18 | use Asylamba\Modules\Promethee\Model\Technology; |
| 21 | 19 | use Asylamba\Modules\Demeter\Model\Law\Law; |
| 22 | - |
|
| 23 | 20 | use Asylamba\Modules\Demeter\Resource\ColorResource; |
| 24 | 21 | use Asylamba\Modules\Promethee\Resource\TechnologyResource; |
| 25 | 22 | use Asylamba\Modules\Demeter\Resource\LawResources; |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use Asylamba\Classes\Worker\ASM; |
|
| 4 | -use Asylamba\Classes\Worker\CTR; |
|
| 5 | -use Asylamba\Modules\Athena\Model\Transaction; |
|
| 6 | -use Asylamba\Modules\Zeus\Model\PlayerBonus; |
|
| 3 | +use Asylamba\Classes\Worker\ASM; |
|
| 4 | +use Asylamba\Classes\Worker\CTR; |
|
| 5 | +use Asylamba\Modules\Athena\Model\Transaction; |
|
| 6 | +use Asylamba\Modules\Zeus\Model\PlayerBonus; |
|
| 7 | 7 | use Asylamba\Classes\Library\Game; |
| 8 | 8 | |
| 9 | 9 | # background paralax |