forked from rabinovichr/Project02
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuildNationNaveed.java
64 lines (59 loc) · 2.54 KB
/
BuildNationNaveed.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
59
60
61
62
63
64
package Project02;
import java.util.ArrayList;
/**
* Add the 3 different types of players into 3 tribes. Each tribe should have 6 players.
* Each nation should have 18 players.
*/
public class BuildNationNaveed implements AddPlayers
{
/**
* @param members
* @param nationName
* @param tribeName
* @param tribeLifePoints
* @return nothing
*/
public void add(ArrayList<People> members, String nationName, String tribeName, int tribeLifePoints)
{
// Tribe1
if(tribeName.equals("Tribe1"))
{
// Tribe1 has 2 of each PeopleType
// 2 Healers
// 2 Warriors
// 2 Wizards
members.add(new NaveedWarrior(nationName, tribeName, tribeLifePoints / 6));
members.add(new NaveedWarrior2(nationName,tribeName, tribeLifePoints / 6));
members.add(new NaveedWizard(nationName,tribeName,tribeLifePoints / 6));
members.add(new NaveedWizard2(nationName, tribeName, tribeLifePoints / 6));
members.add(new NaveedHealer(nationName,tribeName,tribeLifePoints / 6));
members.add(new NaveedHealer2(nationName,tribeName, tribeLifePoints / 6));
}
// Tribe2
if(tribeName.equals("Tribe2"))
{
// 3 Warriors
// 2 Healers
// 1 Wizard
members.add(new NaveedWarrior(nationName, tribeName, tribeLifePoints / 6));
members.add(new NaveedWarrior2(nationName,tribeName, tribeLifePoints / 6));
members.add(new NaveedWarrior(nationName, tribeName, tribeLifePoints / 6));
members.add(new NaveedHealer(nationName, tribeName, tribeLifePoints / 6));
members.add(new NaveedHealer2(nationName, tribeName, tribeLifePoints / 6));
members.add(new NaveedWizard(nationName, tribeName, tribeLifePoints / 6)); // Wizard
}
// Tribe3
if(tribeName.equals("Tribe3"))
{
// 1 Warrior
// 1 Healer
// 4 Wizards
members.add(new NaveedWizard(nationName, tribeName, tribeLifePoints / 6));
members.add(new NaveedWizard(nationName, tribeName, tribeLifePoints / 6));
members.add(new NaveedWizard2(nationName, tribeName, tribeLifePoints / 6));
members.add(new NaveedWizard2(nationName, tribeName, tribeLifePoints / 6));
members.add(new NaveedHealer(nationName, tribeName, tribeLifePoints / 6)); // Healer
members.add(new NaveedWarrior(nationName, tribeName, tribeLifePoints / 6)); // Warrior
}
}
}