| 1 | <?php |
||
| 13 | class MissionFactory { |
||
| 14 | public static $missions = array( |
||
| 15 | // MT_NONE, |
||
| 16 | MT_EXPLORE => 'Explore', |
||
| 17 | MT_COLONIZE => 'Colonize', |
||
| 18 | MT_RECYCLE => 'Recycle', |
||
| 19 | MT_RELOCATE => 'Relocate', |
||
| 20 | MT_TRANSPORT => 'Transport', |
||
| 21 | MT_HOLD => 'Hold', |
||
| 22 | MT_MISSILE => 'Missile', |
||
| 23 | MT_SPY => 'Spy', |
||
| 24 | MT_ATTACK => 'Attack', |
||
| 25 | MT_ACS => 'Acs', |
||
| 26 | MT_DESTROY => 'Destroy', |
||
| 27 | ); |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param int $missionType |
||
| 31 | * @param Fleet $fleet |
||
| 32 | * |
||
| 33 | * @return Mission |
||
| 34 | * @throws ExceptionFleetInvalid |
||
| 35 | */ |
||
| 36 | public static function build($missionType, $fleet) { |
||
| 45 | |||
| 46 | } |
||
| 47 |