1
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
2
|
// Copyright 2022 Leszek Koltunski //
|
3
|
// //
|
4
|
// This file is part of Magic Cube. //
|
5
|
// //
|
6
|
// Magic Cube is proprietary software licensed under an EULA which you should have received //
|
7
|
// along with the code. If not, check https://distorted.org/magic/License-Magic-Cube.html //
|
8
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
9
|
|
10
|
package org.distorted.overlays;
|
11
|
|
12
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
13
|
|
14
|
import android.content.res.Resources;
|
15
|
|
16
|
public class DataStars extends DataGeneric
|
17
|
{
|
18
|
private final int mTotStars, mNewStars;
|
19
|
private final Resources mRes;
|
20
|
|
21
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
22
|
|
23
|
public DataStars(int totStars, int newStars, Resources res)
|
24
|
{
|
25
|
mTotStars = totStars;
|
26
|
mNewStars = newStars;
|
27
|
mRes = res;
|
28
|
}
|
29
|
|
30
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
31
|
|
32
|
int getTotal()
|
33
|
{
|
34
|
return mTotStars;
|
35
|
}
|
36
|
|
37
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
38
|
|
39
|
int getNew()
|
40
|
{
|
41
|
return mNewStars;
|
42
|
}
|
43
|
|
44
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
45
|
|
46
|
Resources getResources()
|
47
|
{
|
48
|
return mRes;
|
49
|
}
|
50
|
}
|