1 | <?php |
||
13 | class IvCombinaison |
||
14 | { |
||
15 | /** |
||
16 | * @var Level |
||
17 | */ |
||
18 | protected $level; |
||
19 | |||
20 | /** |
||
21 | * @var int |
||
22 | */ |
||
23 | protected $attack; |
||
24 | |||
25 | /** |
||
26 | * @var int |
||
27 | */ |
||
28 | protected $defense; |
||
29 | |||
30 | /** |
||
31 | * @var int |
||
32 | */ |
||
33 | protected $stamina; |
||
34 | |||
35 | /** |
||
36 | * IvCombinaison constructor. |
||
37 | * @param Level $level |
||
38 | * @param int $attack |
||
39 | * @param int $defense |
||
40 | * @param int $stamina |
||
41 | */ |
||
42 | public function __construct( |
||
53 | |||
54 | /** |
||
55 | * Get level |
||
56 | * |
||
57 | * @return Level |
||
58 | */ |
||
59 | public function getLevel(): Level |
||
63 | |||
64 | /** |
||
65 | * Get attack |
||
66 | * |
||
67 | * @return int |
||
68 | */ |
||
69 | public function getAttack(): int |
||
73 | |||
74 | /** |
||
75 | * Get defense |
||
76 | * |
||
77 | * @return int |
||
78 | */ |
||
79 | public function getDefense(): int |
||
83 | |||
84 | /** |
||
85 | * Get stamina |
||
86 | * |
||
87 | * @return int |
||
88 | */ |
||
89 | public function getStamina(): int |
||
93 | |||
94 | /** |
||
95 | * @param $abbr |
||
96 | * @throws AbbreviationNotExists |
||
97 | * @return int |
||
98 | */ |
||
99 | public function getAbbreviated($abbr): int |
||
110 | |||
111 | /** |
||
112 | * Return the minimal iv stat |
||
113 | * @return int |
||
114 | */ |
||
115 | public function getMaximalIv(): int |
||
119 | |||
120 | /** |
||
121 | * Return the maximal iv stat |
||
122 | * @return int |
||
123 | */ |
||
124 | public function getMinimalIv(): int |
||
128 | |||
129 | /** |
||
130 | * Return the total of iv stats |
||
131 | * @return int |
||
132 | */ |
||
133 | public function getTotal(): int |
||
140 | |||
141 | /** |
||
142 | * Get the average perfection of the combinaison |
||
143 | * @return float |
||
144 | */ |
||
145 | public function getPerfection(): float |
||
149 | } |
||
150 |