1 | <?php |
||
29 | class WASDControlsComponent extends ComponentAbstract implements WASDControlsCMPTIF |
||
30 | { |
||
31 | |||
32 | /** |
||
33 | * Initialize Component |
||
34 | * |
||
35 | * {@inheritdoc} |
||
36 | * |
||
37 | * @return bool |
||
38 | */ |
||
39 | 7 | public function initializeComponent(): bool |
|
44 | |||
45 | /** |
||
46 | * Entity acceleration |
||
47 | * |
||
48 | * {@inheritdoc} |
||
49 | * |
||
50 | * @param int $acceleration |
||
51 | * @return WASDControlsCMPTIF |
||
52 | */ |
||
53 | 2 | public function acceleration(int $acceleration = 65): WASDControlsCMPTIF |
|
58 | |||
59 | /** |
||
60 | * AD Axis |
||
61 | * |
||
62 | * {@inheritdoc} |
||
63 | * |
||
64 | * @param string $axis |
||
65 | * @return WASDControlsCMPTIF |
||
66 | */ |
||
67 | 1 | public function adAxis(string $axis = 'x'): WASDControlsCMPTIF |
|
72 | |||
73 | /** |
||
74 | * AD Inverted |
||
75 | * |
||
76 | * {@inheritdoc} |
||
77 | * |
||
78 | * @param bool $inverted |
||
79 | * @return WASDControlsCMPTIF |
||
80 | */ |
||
81 | 1 | public function adInverted(bool $inverted = false): WASDControlsCMPTIF |
|
86 | |||
87 | /** |
||
88 | * Easing |
||
89 | * |
||
90 | * {@inheritdoc} |
||
91 | * |
||
92 | * @param int $easing |
||
93 | * @return WASDControlsCMPTIF |
||
94 | */ |
||
95 | 1 | public function easing(int $easing = 20): WASDControlsCMPTIF |
|
100 | |||
101 | /** |
||
102 | * Enaled |
||
103 | * |
||
104 | * {@inheritdoc} |
||
105 | * |
||
106 | * @param bool $enabled |
||
107 | * @return WASDControlsCMPTIF |
||
108 | */ |
||
109 | 4 | public function enabled(bool $enabled = true): WASDControlsCMPTIF |
|
114 | |||
115 | /** |
||
116 | * Fly |
||
117 | * |
||
118 | * {@inheritdoc} |
||
119 | * |
||
120 | * @param bool $fly |
||
121 | * @return WASDControlsCMPTIF |
||
122 | */ |
||
123 | 1 | public function fly(bool $fly = false): WASDControlsCMPTIF |
|
128 | |||
129 | /** |
||
130 | * WS Axis |
||
131 | * |
||
132 | * {@inheritdoc} |
||
133 | * |
||
134 | * @param string $axis |
||
135 | * @return WASDControlsCMPTIF |
||
136 | */ |
||
137 | 1 | public function wsAxis(string $axis = 'z'): WASDControlsCMPTIF |
|
142 | |||
143 | /** |
||
144 | * WS Inverted |
||
145 | * |
||
146 | * {@inheritdoc} |
||
147 | * |
||
148 | * @param bool $inverted |
||
149 | * @return WASDControlsCMPTIF |
||
150 | */ |
||
151 | 1 | public function wsInverted(bool $inverted = false): WASDControlsCMPTIF |
|
156 | } |
||
157 |