forked from rabinovichr/Project02
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildNationPerez.java
41 lines (39 loc) · 2.06 KB
/
BuildNationPerez.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
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 BuildNationPerez implements AddPlayers{
@Override
public void add(ArrayList<People> members, String nationName, String tribeName, int tribeLifePoints)
{
if(tribeName.equals("Tribe1"))
{
members.add(new PerezHealer(nationName, tribeName, tribeLifePoints / 6));
members.add(new PerezWarrior(nationName, tribeName, tribeLifePoints / 6));
members.add(new PerezWizard(nationName, tribeName, tribeLifePoints / 6));
members.add(new PerezHealer2(nationName, tribeName, tribeLifePoints / 6));
members.add(new PerezWarrior2(nationName, tribeName, tribeLifePoints / 6));
members.add(new PerezWizard2(nationName, tribeName, tribeLifePoints / 6));
}
if(tribeName.equals("Tribe2"))
{
members.add(new PerezHealer(nationName, tribeName, tribeLifePoints / 6));
members.add(new PerezWarrior(nationName, tribeName, tribeLifePoints / 6));
members.add(new PerezWizard(nationName, tribeName, tribeLifePoints / 6));
members.add(new PerezHealer2(nationName, tribeName, tribeLifePoints / 6));
members.add(new PerezWarrior2(nationName, tribeName, tribeLifePoints / 6));
members.add(new PerezWizard2(nationName, tribeName, tribeLifePoints / 6));
}
if(tribeName.equals("Tribe3"))
{
members.add(new PerezHealer(nationName, tribeName, tribeLifePoints / 6));
members.add(new PerezWarrior(nationName, tribeName, tribeLifePoints / 6));
members.add(new PerezWizard(nationName, tribeName, tribeLifePoints / 6));
members.add(new PerezHealer2(nationName, tribeName, tribeLifePoints / 6));
members.add(new PerezWarrior2(nationName, tribeName, tribeLifePoints / 6));
members.add(new PerezWizard2(nationName, tribeName, tribeLifePoints / 6));
}
}
}