Completed
Push — work-fleets ( 33857b...22a48f )
by SuperNova.WS
05:55
created

Colonize   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 21
rs 10
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
/**
3
 * User: Gorlum
4
 * Date: 23.07.2016
5
 * Time: 19:18
6
 */
7
8
namespace Mission;
9
10
use Fleet;
11
12
class Colonize extends Mission {
13
  /**
14
   * @var int
15
   */
16
  public $type = MT_COLONIZE;
17
18
  protected static $conditionsLocal = array(
19
    'checkNoMissiles'      => FLIGHT_SHIPS_NO_MISSILES,
20
    'checkHaveColonizer'   => FLIGHT_SHIPS_NO_COLONIZER, // Replaces checkNotOnlySpies
21
    'checkKnownSpace'      => FLIGHT_VECTOR_BEYOND_SYSTEM,
22
    //
23
    'checkTargetNotExists' => FLIGHT_MISSION_COLONIZE_NOT_EMPTY,
24
    //
25
    'checkTargetIsPlanet'  => FLIGHT_MISSION_COLONIZE_NOT_PLANET,
26
  );
27
28
  public function __construct(Fleet $fleet) {
29
    parent::__construct($fleet);
30
  }
31
32
}
33