-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNpc2.java
More file actions
61 lines (57 loc) · 1.01 KB
/
Copy pathNpc2.java
File metadata and controls
61 lines (57 loc) · 1.01 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
public class Npc2 extends Npc
{
private static String name = "Angmar";
private static Npc2 npc2;
private static Store store;
private Npc2()
{
super(name);
this.store = new Store();
}
public static Npc2 getNpc2()
{
if(npc2 == null)
{
npc2 = new Npc2();
}
return npc2;
}
@Override
public void dialogue1()
{
System.out.println("A new recruit. How lovely. Absolutely fantastic.\n"+
"Nothing can stop us now that you're here.\n"+
"Armies will tremble before you.");
}
@Override
public void dialogue2()
{
System.out.println("You dont even have a weapon do you? *Sighs*\n"+
"Bloody new recruits... I have a few weapons for sale.\n"+
"Take a look at these.");
}
@Override
public void dialogue3()
{
}
@Override
public void dialogue4()
{
}
@Override
public void dialogue5()
{
}
@Override
public void dialogue6()
{
}
public int showWeapons4Sale()
{
return store.showWeaponsAvailable();
}
public Store buyFromStore()
{
return this.store;
}
}