-
Notifications
You must be signed in to change notification settings - Fork 0
/
save.java
58 lines (52 loc) · 1.48 KB
/
save.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import java.io.Serializable;
import java.util.ArrayList;
public class save implements Serializable {
double player_x;
double player_y;
int coins;
int moves_done;// score
int ressurect;
int knife_lvl;
int shuriken_lvl;
int weapon_flag;
double ap_x;
double p1_x;
double p2_x;
double p3_x;
double gear;
double coinscounter;
double scorecount;
ArrayList<Integer> orcflags;
ArrayList<Double> orcx;
ArrayList<Double> orcy;
ArrayList<Double> topx;
ArrayList<Double> topy;
ArrayList<Double> botx;
ArrayList<Double> boty;
public save(double x, double y, int coin, int moves, int rflag, int knife, int shuri, int wflag,double ap_x,double p1_x,double p2_x,double gear,double coinscounter,double score,double p3_x,
ArrayList<Integer> oflags,ArrayList<Double> ox,ArrayList<Double> oy,ArrayList<Double> tx,ArrayList<Double> ty,ArrayList<Double> bx,ArrayList<Double> by)
{
player_x = x;
player_y = 220;
coins = coin;
moves_done = moves;
ressurect = rflag;
knife_lvl = knife;
shuriken_lvl = shuri;
weapon_flag = wflag;
this.ap_x=ap_x;
this.p1_x=p1_x;
this.p2_x=p2_x;
this.p3_x=p3_x;
this.gear=gear;
this.coinscounter=coinscounter;
this.scorecount=scorecount;
orcflags=oflags;
orcx=ox;
orcy=oy;
topx=tx;
topy=ty;
botx=bx;
boty=by;
}
}