Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Zombie2021;
- public class Apoc {
- private int numZombies;
- private int daysLeft;
- private Person p;
- public Apoc(int days, Person p){
- this.p=p;
- daysLeft=days;
- }
- public void runSimulation(){
- //while( days and food and people are left){
- // eat
- // fight
- // }
- }
- public void eatFood(){
- }
- public boolean fight(){
- boolean peopleLeft=p.getPersonCount()>0;
- //generate zombies
- numZombies=Utilities.randomInRange(10,25);
- //if(ammo left){
- // gunfight()
- // }
- //else{
- // bluntfight()
- // }
- return peopleLeft;
- }
- public boolean gunFight(){
- }
- public boolean bluntFight(){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement