forked from get-flord/Project2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClanFactory.java
More file actions
executable file
·38 lines (31 loc) · 979 Bytes
/
ClanFactory.java
File metadata and controls
executable file
·38 lines (31 loc) · 979 Bytes
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
package clanmelee;
import ClanCarr.ClanCarr;
import HowardClan.HowardClan;
import MeonoClan.MeonoClan;
import ZambelliClan.ZambelliClan;
import MateoClan.MateoClan;
import GleasonClan.GleasonClan;
import Team4Clan.Team4Clan;
//import clanmelee.Clan1.Clan1;
//import clanmelee.Clan2.Clan2;
import java.util.ArrayList;
import java.util.Collection;
/**
* Creates a list of clans with unique ID's
*/
public class ClanFactory {
public Collection<Clan> getClans() {
ArrayList<Clan> clans = new ArrayList<Clan>();
int clanID = 0;
//clans.add(new Clan1(clanID++));
//clans.add(new Clan2(clanID++));
clans.add(new ZambelliClan(clanID++));
clans.add(new ClanCarr(clanID++));
clans.add(new HowardClan(clanID++));
clans.add(new MeonoClan(clanID++));
clans.add(new MateoClan(clanID++));
clans.add(new GleasonClan(clanID++));
clans.add(new Team4Clan(clanID++));
return clans;
}
}