2020-10-20 01:33:57 +02:00
|
|
|
public class Campaign {
|
2020-10-09 21:22:37 +02:00
|
|
|
|
|
|
|
private int UID;
|
|
|
|
private int workers;
|
|
|
|
private int numberOfPeople;
|
|
|
|
private String district;
|
|
|
|
private String name;
|
|
|
|
private boolean local;
|
|
|
|
|
|
|
|
|
|
|
|
public Campaign(int numberOfPeople){
|
|
|
|
/*
|
|
|
|
Make an array of pilgrims based on number of people with
|
|
|
|
a set ration pilgrims:workers
|
|
|
|
Assume not local
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
|
2020-10-20 01:33:57 +02:00
|
|
|
// public Campaign(Pilgrim[] pilgrims){
|
|
|
|
// /*
|
|
|
|
// Calculate number of workers based on number of pilgrims (pilgrims.length;)
|
|
|
|
// Assume not local
|
|
|
|
// */
|
|
|
|
// }
|
2020-10-09 21:22:37 +02:00
|
|
|
|
|
|
|
public int getNumberofCars(){
|
|
|
|
//Assume each car holds 4 workers
|
|
|
|
return (int)workers/4;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getNumberOfBusses(){
|
2020-10-20 01:33:57 +02:00
|
|
|
return 0;//TODO: calc buses?
|
2020-10-09 21:22:37 +02:00
|
|
|
}
|
|
|
|
}
|