1 |
4f470e00
|
Leszek Koltunski
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
2 |
|
|
// Copyright 2020 Leszek Koltunski //
|
3 |
|
|
// //
|
4 |
|
|
// This file is part of Magic Cube. //
|
5 |
|
|
// //
|
6 |
|
|
// Magic Cube is free software: you can redistribute it and/or modify //
|
7 |
|
|
// it under the terms of the GNU General Public License as published by //
|
8 |
|
|
// the Free Software Foundation, either version 2 of the License, or //
|
9 |
|
|
// (at your option) any later version. //
|
10 |
|
|
// //
|
11 |
|
|
// Magic Cube is distributed in the hope that it will be useful, //
|
12 |
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
13 |
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
14 |
|
|
// GNU General Public License for more details. //
|
15 |
|
|
// //
|
16 |
|
|
// You should have received a copy of the GNU General Public License //
|
17 |
|
|
// along with Magic Cube. If not, see <http://www.gnu.org/licenses/>. //
|
18 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
19 |
|
|
|
20 |
1f9772f3
|
Leszek Koltunski
|
package org.distorted.states;
|
21 |
4f470e00
|
Leszek Koltunski
|
|
22 |
|
|
import android.content.SharedPreferences;
|
23 |
e108b57e
|
Leszek Koltunski
|
import android.os.Bundle;
|
24 |
66e777b0
|
Leszek Koltunski
|
import androidx.fragment.app.FragmentManager;
|
25 |
4f470e00
|
Leszek Koltunski
|
import android.util.DisplayMetrics;
|
26 |
e3c74c0f
|
Leszek Koltunski
|
import android.util.TypedValue;
|
27 |
11877284
|
Leszek Koltunski
|
import android.view.Gravity;
|
28 |
4f470e00
|
Leszek Koltunski
|
import android.view.LayoutInflater;
|
29 |
a6d3b158
|
Leszek Koltunski
|
import android.view.View;
|
30 |
4f470e00
|
Leszek Koltunski
|
import android.widget.Button;
|
31 |
0a57000c
|
Leszek Koltunski
|
import android.widget.ImageButton;
|
32 |
4f470e00
|
Leszek Koltunski
|
import android.widget.LinearLayout;
|
33 |
|
|
import android.widget.TextView;
|
34 |
|
|
|
35 |
1f9772f3
|
Leszek Koltunski
|
import org.distorted.dialogs.RubikDialogPattern;
|
36 |
|
|
import org.distorted.main.R;
|
37 |
|
|
import org.distorted.main.RubikActivity;
|
38 |
5a4d4fba
|
Leszek Koltunski
|
import org.distorted.main.RubikPreRender;
|
39 |
1f9772f3
|
Leszek Koltunski
|
import org.distorted.objects.RubikObjectList;
|
40 |
53f23b64
|
Leszek Koltunski
|
import org.distorted.patterns.RubikPattern;
|
41 |
b498f3f6
|
Leszek Koltunski
|
import org.distorted.patterns.RubikPatternList;
|
42 |
4f470e00
|
Leszek Koltunski
|
|
43 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
44 |
|
|
|
45 |
|
|
public class RubikStatePattern extends RubikStateAbstract
|
46 |
|
|
{
|
47 |
3a9d19ed
|
Leszek Koltunski
|
private TextView mText;
|
48 |
53f23b64
|
Leszek Koltunski
|
private Button mBackButton;
|
49 |
0a57000c
|
Leszek Koltunski
|
private ImageButton mPrevButton, mNextButton;
|
50 |
|
|
private TextView mMovesText;
|
51 |
8becce57
|
Leszek Koltunski
|
private int mNumMoves;
|
52 |
b498f3f6
|
Leszek Koltunski
|
private int mPatternOrdinal, mCategory, mPattern;
|
53 |
e3c74c0f
|
Leszek Koltunski
|
private float mButtonSize, mTitleSize;
|
54 |
4f470e00
|
Leszek Koltunski
|
|
55 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
56 |
|
|
|
57 |
|
|
RubikStatePattern()
|
58 |
|
|
{
|
59 |
|
|
|
60 |
|
|
}
|
61 |
|
|
|
62 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
63 |
|
|
|
64 |
|
|
void leaveState(RubikActivity act)
|
65 |
|
|
{
|
66 |
53f23b64
|
Leszek Koltunski
|
RubikStatePlay play = (RubikStatePlay)RubikState.PLAY.getStateClass();
|
67 |
|
|
|
68 |
b498f3f6
|
Leszek Koltunski
|
RubikObjectList object = RubikPatternList.getObject(mPatternOrdinal);
|
69 |
|
|
int size = RubikPatternList.getSize(mPatternOrdinal);
|
70 |
|
|
|
71 |
7b7d65ce
|
Leszek Koltunski
|
if( !play.setObjectAndSize(act,object,size) )
|
72 |
53f23b64
|
Leszek Koltunski
|
{
|
73 |
b498f3f6
|
Leszek Koltunski
|
int objectPlay= play.getObject();
|
74 |
|
|
int sizePlay = play.getSize();
|
75 |
53f23b64
|
Leszek Koltunski
|
|
76 |
7eae2d49
|
Leszek Koltunski
|
act.changeObject(RubikObjectList.getObject(objectPlay),sizePlay, false);
|
77 |
53f23b64
|
Leszek Koltunski
|
}
|
78 |
4f470e00
|
Leszek Koltunski
|
}
|
79 |
|
|
|
80 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
81 |
|
|
|
82 |
a6d3b158
|
Leszek Koltunski
|
void enterState(final RubikActivity act)
|
83 |
4f470e00
|
Leszek Koltunski
|
{
|
84 |
e3c74c0f
|
Leszek Koltunski
|
float width = act.getScreenWidthInPixels();
|
85 |
|
|
mButtonSize = width*RubikActivity.BUTTON_TEXT_SIZE;
|
86 |
|
|
mTitleSize = width*RubikActivity.TITLE_TEXT_SIZE;
|
87 |
|
|
|
88 |
53f23b64
|
Leszek Koltunski
|
RubikStatePlay play = (RubikStatePlay)RubikState.PLAY.getStateClass();
|
89 |
|
|
int obj = play.getObject();
|
90 |
|
|
int size = play.getSize();
|
91 |
|
|
|
92 |
b498f3f6
|
Leszek Koltunski
|
mPatternOrdinal = RubikPatternList.getOrdinal(obj,size);
|
93 |
|
|
|
94 |
|
|
if( mPatternOrdinal<0 )
|
95 |
53f23b64
|
Leszek Koltunski
|
{
|
96 |
b498f3f6
|
Leszek Koltunski
|
mPatternOrdinal = RubikObjectList.getSizeIndex(RubikStatePlay.DEF_OBJECT,RubikStatePlay.DEF_SIZE);
|
97 |
53f23b64
|
Leszek Koltunski
|
}
|
98 |
a6d3b158
|
Leszek Koltunski
|
|
99 |
e108b57e
|
Leszek Koltunski
|
FragmentManager mana = act.getSupportFragmentManager();
|
100 |
|
|
RubikDialogPattern diag = (RubikDialogPattern) mana.findFragmentByTag(RubikDialogPattern.getDialogTag());
|
101 |
|
|
|
102 |
|
|
if( diag==null ) showDialog(mana);
|
103 |
|
|
|
104 |
4f470e00
|
Leszek Koltunski
|
LayoutInflater inflater = act.getLayoutInflater();
|
105 |
|
|
|
106 |
|
|
// TOP ////////////////////////////
|
107 |
7289fd6c
|
Leszek Koltunski
|
LinearLayout layoutTop = act.findViewById(R.id.upperBar);
|
108 |
4f470e00
|
Leszek Koltunski
|
layoutTop.removeAllViews();
|
109 |
de44c2b4
|
Leszek Koltunski
|
mText = (TextView)inflater.inflate(R.layout.upper_pattern_text, null);
|
110 |
e3c74c0f
|
Leszek Koltunski
|
mText.setTextSize(TypedValue.COMPLEX_UNIT_PX, mTitleSize);
|
111 |
3a9d19ed
|
Leszek Koltunski
|
mText.setText(R.string.patterns);
|
112 |
|
|
layoutTop.addView(mText);
|
113 |
4f470e00
|
Leszek Koltunski
|
|
114 |
|
|
// BOT ////////////////////////////
|
115 |
53f23b64
|
Leszek Koltunski
|
DisplayMetrics metrics = act.getResources().getDisplayMetrics();
|
116 |
|
|
|
117 |
ad0c8e0e
|
Leszek Koltunski
|
setupPrevButton(act,width);
|
118 |
|
|
setupNextButton(act,width);
|
119 |
|
|
setupTextView(act,width);
|
120 |
0a57000c
|
Leszek Koltunski
|
|
121 |
4b4e6837
|
Leszek Koltunski
|
setTrioState(false);
|
122 |
|
|
|
123 |
0a57000c
|
Leszek Koltunski
|
LinearLayout layoutLeft = act.findViewById(R.id.mainBarLeft);
|
124 |
|
|
layoutLeft.removeAllViews();
|
125 |
|
|
layoutLeft.addView(mPrevButton);
|
126 |
|
|
layoutLeft.addView(mMovesText);
|
127 |
|
|
layoutLeft.addView(mNextButton);
|
128 |
|
|
|
129 |
ad0c8e0e
|
Leszek Koltunski
|
setupBackButton(act,width);
|
130 |
53f23b64
|
Leszek Koltunski
|
|
131 |
4f470e00
|
Leszek Koltunski
|
LinearLayout layoutRight = act.findViewById(R.id.mainBarRight);
|
132 |
|
|
layoutRight.removeAllViews();
|
133 |
53f23b64
|
Leszek Koltunski
|
layoutRight.addView(mBackButton);
|
134 |
|
|
}
|
135 |
4f470e00
|
Leszek Koltunski
|
|
136 |
53f23b64
|
Leszek Koltunski
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
137 |
a6d3b158
|
Leszek Koltunski
|
|
138 |
e108b57e
|
Leszek Koltunski
|
private void showDialog(FragmentManager manager)
|
139 |
53f23b64
|
Leszek Koltunski
|
{
|
140 |
e108b57e
|
Leszek Koltunski
|
RubikDialogPattern diag = new RubikDialogPattern();
|
141 |
b498f3f6
|
Leszek Koltunski
|
Bundle bundle = new Bundle();
|
142 |
|
|
bundle.putInt("tab", mPatternOrdinal );
|
143 |
e108b57e
|
Leszek Koltunski
|
diag.setArguments(bundle);
|
144 |
|
|
diag.show( manager, RubikDialogPattern.getDialogTag() );
|
145 |
53f23b64
|
Leszek Koltunski
|
}
|
146 |
|
|
|
147 |
4b4e6837
|
Leszek Koltunski
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
148 |
|
|
|
149 |
|
|
private void setTrioState(boolean enable)
|
150 |
|
|
{
|
151 |
|
|
int state = enable ? View.VISIBLE : View.INVISIBLE;
|
152 |
|
|
|
153 |
|
|
if( mPrevButton!=null ) mPrevButton.setVisibility(state);
|
154 |
|
|
if( mNextButton!=null ) mNextButton.setVisibility(state);
|
155 |
|
|
if( mMovesText !=null ) mMovesText.setVisibility(state);
|
156 |
|
|
}
|
157 |
|
|
|
158 |
53f23b64
|
Leszek Koltunski
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
159 |
|
|
|
160 |
ad0c8e0e
|
Leszek Koltunski
|
private void setupBackButton(final RubikActivity act, final float width)
|
161 |
53f23b64
|
Leszek Koltunski
|
{
|
162 |
ad0c8e0e
|
Leszek Koltunski
|
int padding = (int)(width*RubikActivity.PADDING);
|
163 |
|
|
int margin = (int)(width*RubikActivity.MARGIN);
|
164 |
|
|
|
165 |
|
|
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,LinearLayout.LayoutParams.MATCH_PARENT);
|
166 |
|
|
params.topMargin = margin;
|
167 |
|
|
params.bottomMargin = margin;
|
168 |
|
|
params.leftMargin = margin;
|
169 |
|
|
params.rightMargin = margin;
|
170 |
|
|
|
171 |
53f23b64
|
Leszek Koltunski
|
mBackButton = new Button(act);
|
172 |
ad0c8e0e
|
Leszek Koltunski
|
mBackButton.setLayoutParams(params);
|
173 |
53f23b64
|
Leszek Koltunski
|
mBackButton.setPadding(padding,0,padding,0);
|
174 |
e3c74c0f
|
Leszek Koltunski
|
mBackButton.setTextSize(TypedValue.COMPLEX_UNIT_PX, mButtonSize);
|
175 |
53f23b64
|
Leszek Koltunski
|
mBackButton.setText(R.string.back);
|
176 |
|
|
|
177 |
|
|
mBackButton.setOnClickListener( new View.OnClickListener()
|
178 |
a6d3b158
|
Leszek Koltunski
|
{
|
179 |
|
|
@Override
|
180 |
|
|
public void onClick(View v)
|
181 |
|
|
{
|
182 |
e108b57e
|
Leszek Koltunski
|
FragmentManager mana = act.getSupportFragmentManager();
|
183 |
|
|
RubikDialogPattern diag = (RubikDialogPattern) mana.findFragmentByTag(RubikDialogPattern.getDialogTag());
|
184 |
53f23b64
|
Leszek Koltunski
|
|
185 |
e108b57e
|
Leszek Koltunski
|
if( diag==null )
|
186 |
53f23b64
|
Leszek Koltunski
|
{
|
187 |
e108b57e
|
Leszek Koltunski
|
showDialog(mana);
|
188 |
4b4e6837
|
Leszek Koltunski
|
setTrioState(false);
|
189 |
53f23b64
|
Leszek Koltunski
|
}
|
190 |
e108b57e
|
Leszek Koltunski
|
else
|
191 |
|
|
{
|
192 |
c715128d
|
Leszek Koltunski
|
diag.rememberState();
|
193 |
e108b57e
|
Leszek Koltunski
|
diag.dismiss();
|
194 |
|
|
RubikState.goBack(act);
|
195 |
|
|
}
|
196 |
|
|
}
|
197 |
|
|
});
|
198 |
4f470e00
|
Leszek Koltunski
|
}
|
199 |
|
|
|
200 |
0a57000c
|
Leszek Koltunski
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
201 |
|
|
|
202 |
ad0c8e0e
|
Leszek Koltunski
|
private void setupPrevButton(final RubikActivity act, final float width)
|
203 |
0a57000c
|
Leszek Koltunski
|
{
|
204 |
ad0c8e0e
|
Leszek Koltunski
|
int padding = (int)(width*RubikActivity.PADDING);
|
205 |
|
|
int margin = (int)(width*RubikActivity.MARGIN);
|
206 |
31a9f38d
|
Leszek Koltunski
|
int icon = RubikActivity.getDrawable(R.drawable.ui_small_left,R.drawable.ui_medium_left, R.drawable.ui_big_left, R.drawable.ui_huge_left);
|
207 |
ad0c8e0e
|
Leszek Koltunski
|
|
208 |
11877284
|
Leszek Koltunski
|
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(0,LinearLayout.LayoutParams.MATCH_PARENT,1.0f);
|
209 |
ad0c8e0e
|
Leszek Koltunski
|
params.topMargin = margin;
|
210 |
|
|
params.bottomMargin = margin;
|
211 |
|
|
params.leftMargin = margin;
|
212 |
|
|
params.rightMargin = margin;
|
213 |
|
|
|
214 |
0a57000c
|
Leszek Koltunski
|
mPrevButton = new ImageButton(act);
|
215 |
|
|
mPrevButton.setLayoutParams(params);
|
216 |
|
|
mPrevButton.setPadding(padding,0,padding,0);
|
217 |
f6a9c538
|
Leszek Koltunski
|
mPrevButton.setImageResource(icon);
|
218 |
0a57000c
|
Leszek Koltunski
|
|
219 |
|
|
mPrevButton.setOnClickListener( new View.OnClickListener()
|
220 |
|
|
{
|
221 |
|
|
@Override
|
222 |
|
|
public void onClick(View v)
|
223 |
|
|
{
|
224 |
8becce57
|
Leszek Koltunski
|
RubikPattern pattern = RubikPattern.getInstance();
|
225 |
5a4d4fba
|
Leszek Koltunski
|
RubikPreRender pre = act.getPreRender();
|
226 |
|
|
pattern.backMove( pre, mPatternOrdinal, mCategory, mPattern);
|
227 |
b498f3f6
|
Leszek Koltunski
|
int currMove = pattern.getCurMove(mPatternOrdinal, mCategory, mPattern);
|
228 |
8becce57
|
Leszek Koltunski
|
mMovesText.setText(act.getString(R.string.mo_placeholder,currMove,mNumMoves));
|
229 |
0a57000c
|
Leszek Koltunski
|
}
|
230 |
|
|
});
|
231 |
|
|
}
|
232 |
|
|
|
233 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
234 |
|
|
|
235 |
ad0c8e0e
|
Leszek Koltunski
|
private void setupNextButton(final RubikActivity act, final float width)
|
236 |
0a57000c
|
Leszek Koltunski
|
{
|
237 |
ad0c8e0e
|
Leszek Koltunski
|
int padding = (int)(width*RubikActivity.PADDING);
|
238 |
|
|
int margin = (int)(width*RubikActivity.MARGIN);
|
239 |
31a9f38d
|
Leszek Koltunski
|
int icon = RubikActivity.getDrawable(R.drawable.ui_small_right,R.drawable.ui_medium_right, R.drawable.ui_big_right, R.drawable.ui_huge_right);
|
240 |
ad0c8e0e
|
Leszek Koltunski
|
|
241 |
11877284
|
Leszek Koltunski
|
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(0,LinearLayout.LayoutParams.MATCH_PARENT, 1.0f);
|
242 |
ad0c8e0e
|
Leszek Koltunski
|
params.topMargin = margin;
|
243 |
|
|
params.bottomMargin = margin;
|
244 |
|
|
params.leftMargin = margin;
|
245 |
|
|
params.rightMargin = margin;
|
246 |
|
|
|
247 |
0a57000c
|
Leszek Koltunski
|
mNextButton = new ImageButton(act);
|
248 |
|
|
mNextButton.setLayoutParams(params);
|
249 |
|
|
mNextButton.setPadding(padding,0,padding,0);
|
250 |
f6a9c538
|
Leszek Koltunski
|
mNextButton.setImageResource(icon);
|
251 |
0a57000c
|
Leszek Koltunski
|
|
252 |
|
|
mNextButton.setOnClickListener( new View.OnClickListener()
|
253 |
|
|
{
|
254 |
|
|
@Override
|
255 |
|
|
public void onClick(View v)
|
256 |
|
|
{
|
257 |
8becce57
|
Leszek Koltunski
|
RubikPattern pattern = RubikPattern.getInstance();
|
258 |
5a4d4fba
|
Leszek Koltunski
|
RubikPreRender pre = act.getPreRender();
|
259 |
|
|
pattern.makeMove( pre, mPatternOrdinal, mCategory, mPattern);
|
260 |
b498f3f6
|
Leszek Koltunski
|
int currMove = pattern.getCurMove(mPatternOrdinal, mCategory, mPattern);
|
261 |
8becce57
|
Leszek Koltunski
|
mMovesText.setText(act.getString(R.string.mo_placeholder,currMove,mNumMoves));
|
262 |
0a57000c
|
Leszek Koltunski
|
}
|
263 |
|
|
});
|
264 |
|
|
}
|
265 |
|
|
|
266 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
267 |
|
|
|
268 |
ad0c8e0e
|
Leszek Koltunski
|
private void setupTextView(final RubikActivity act, final float width)
|
269 |
0a57000c
|
Leszek Koltunski
|
{
|
270 |
ad0c8e0e
|
Leszek Koltunski
|
int padding = (int)(width*RubikActivity.PADDING);
|
271 |
|
|
int margin = (int)(width*RubikActivity.MARGIN);
|
272 |
|
|
|
273 |
11877284
|
Leszek Koltunski
|
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(0,LinearLayout.LayoutParams.MATCH_PARENT,2.0f);
|
274 |
ad0c8e0e
|
Leszek Koltunski
|
params.topMargin = margin;
|
275 |
|
|
params.bottomMargin = margin;
|
276 |
|
|
params.leftMargin = margin;
|
277 |
|
|
params.rightMargin = margin;
|
278 |
0a57000c
|
Leszek Koltunski
|
|
279 |
|
|
mMovesText = new TextView(act);
|
280 |
aa171dee
|
Leszek Koltunski
|
mMovesText.setTextSize(20);
|
281 |
0a57000c
|
Leszek Koltunski
|
mMovesText.setLayoutParams(params);
|
282 |
|
|
mMovesText.setPadding(padding,0,padding,0);
|
283 |
11877284
|
Leszek Koltunski
|
mMovesText.setGravity(Gravity.CENTER);
|
284 |
e3c74c0f
|
Leszek Koltunski
|
mMovesText.setTextSize(TypedValue.COMPLEX_UNIT_PX, mButtonSize);
|
285 |
8a64eaa4
|
Leszek Koltunski
|
mMovesText.setText(act.getString(R.string.mo_placeholder,0,0));
|
286 |
0a57000c
|
Leszek Koltunski
|
}
|
287 |
|
|
|
288 |
3a9d19ed
|
Leszek Koltunski
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
289 |
|
|
|
290 |
b498f3f6
|
Leszek Koltunski
|
public void setPattern(final RubikActivity act, int ordinal, int category, int pattern)
|
291 |
3a9d19ed
|
Leszek Koltunski
|
{
|
292 |
b498f3f6
|
Leszek Koltunski
|
mPatternOrdinal = ordinal;
|
293 |
|
|
mCategory = category;
|
294 |
|
|
mPattern = pattern;
|
295 |
044529c1
|
Leszek Koltunski
|
|
296 |
4b4e6837
|
Leszek Koltunski
|
setTrioState(true);
|
297 |
|
|
|
298 |
e0e84674
|
Leszek Koltunski
|
RubikPattern patt = RubikPattern.getInstance();
|
299 |
b498f3f6
|
Leszek Koltunski
|
String patternName = patt.getPatternName(ordinal,category,pattern);
|
300 |
e0e84674
|
Leszek Koltunski
|
mText.setText(patternName);
|
301 |
aa171dee
|
Leszek Koltunski
|
|
302 |
b498f3f6
|
Leszek Koltunski
|
mNumMoves = patt.getNumMoves(ordinal,category,pattern);
|
303 |
|
|
int currMove= patt.getCurMove(ordinal,category,pattern);
|
304 |
aa171dee
|
Leszek Koltunski
|
|
305 |
8becce57
|
Leszek Koltunski
|
mMovesText.setText(act.getString(R.string.mo_placeholder,currMove,mNumMoves));
|
306 |
3a9d19ed
|
Leszek Koltunski
|
}
|
307 |
|
|
|
308 |
4f470e00
|
Leszek Koltunski
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
309 |
|
|
|
310 |
|
|
public void savePreferences(SharedPreferences.Editor editor)
|
311 |
|
|
{
|
312 |
4f36e418
|
Leszek Koltunski
|
|
313 |
4f470e00
|
Leszek Koltunski
|
}
|
314 |
|
|
|
315 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
316 |
|
|
|
317 |
|
|
public void restorePreferences(SharedPreferences preferences)
|
318 |
|
|
{
|
319 |
|
|
|
320 |
|
|
}
|
321 |
|
|
}
|