Total Complexity | 6 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 28.57% |
Changes | 0 |
1 | <?php |
||
7 | final class GameEnum |
||
8 | { |
||
9 | //game states |
||
10 | public const CONFIG_GAMESTATE = 1; |
||
11 | public const CONFIG_GAMESTATE_VALUE_ONLINE = 1; |
||
12 | public const CONFIG_GAMESTATE_VALUE_TICK = 2; |
||
13 | public const CONFIG_GAMESTATE_VALUE_MAINTENANCE = 3; |
||
14 | public const CONFIG_GAMESTATE_VALUE_RELOCATION = 4; |
||
15 | public const CONFIG_GAMESTATE_VALUE_RESET = 5; |
||
16 | |||
17 | //user stuff |
||
18 | public const USER_ONLINE_PERIOD = 300; |
||
19 | |||
20 | //trade stuff |
||
21 | public const MAX_TRADELICENSE_COUNT = 9999; |
||
22 | |||
23 | //fleet stuff |
||
24 | public const CREW_PER_FLEET = 100; |
||
25 | |||
26 | //commnet stuff |
||
27 | public const KN_PER_SITE = 6; |
||
28 | |||
29 | /** |
||
30 | * Returns the textual representation for a game state |
||
31 | */ |
||
32 | 2 | public static function gameStateTypeToDescription(int $stateId): string |
|
50 |