Advertisement
cgorrillaha

Apoc

Nov 30th, 2021
865
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.85 KB | None | 0 0
  1. package Zombie2021;
  2.  
  3. public class Apoc {
  4.     private int numZombies;
  5.     private int daysLeft;
  6.     private Person p;
  7.    
  8.     public Apoc(int days, Person p){
  9.         this.p=p;
  10.         daysLeft=days;
  11.     }
  12.    
  13.     public void runSimulation(){
  14.         //while( days and food and people are left){
  15.         // eat
  16.         // fight
  17.         // }
  18.     }
  19.    
  20.     public void eatFood(){
  21.        
  22.     }
  23.    
  24.     public boolean fight(){
  25.         boolean peopleLeft=p.getPersonCount()>0;
  26.         //generate zombies
  27.         numZombies=Utilities.randomInRange(10,25);
  28.        
  29.         //if(ammo left){
  30.         // gunfight()
  31.         // }
  32.         //else{
  33.         // bluntfight()
  34.         // }
  35.         return peopleLeft;
  36.     }
  37.    
  38.     public boolean gunFight(){
  39.        
  40.     }
  41.    
  42.     public boolean bluntFight(){
  43.        
  44.     }
  45.    
  46. }
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement