-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLOL.java
More file actions
62 lines (48 loc) · 1.26 KB
/
LOL.java
File metadata and controls
62 lines (48 loc) · 1.26 KB
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
59
60
61
62
package akinator;
public class LOL extends PC{
private int role;
private int hero;
private int whoYouPlayWith;
private double money;
public LOL() {
}
public void LOL(int input1, int input2, int input3, double money) {
this.role = input1;
this.hero = input2;
this.whoYouPlayWith = input3;
this.money = money;
System.out.println("Based on your answer to this question:");
System.out.println("| Your favorite role is " + input1);
System.out.println("| Your favorite hero is " + input2);
if(input3 == 1) {
System.out.println("| You like play solo mood");
}else if(input3 == 2) {
System.out.println("| You like play duo mood");
}
System.out.println("| So far you have been spend " + money + "$ on this game");
}
public int getRole() {
return role;
}
public void setRole(int role) {
this.role = role;
}
public int getHero() {
return hero;
}
public void setHero(int hero) {
this.hero = hero;
}
public int getWhoYouPlayWith() {
return whoYouPlayWith;
}
public void setWhoYouPlayWith(int whoYouPlayWith) {
this.whoYouPlayWith = whoYouPlayWith;
}
public double getMoney() {
return money;
}
public void setMoney(double money) {
this.money = money;
}
}