class Doctor { int x = 0; int y = 0; int mortality = int(random(50)+2); boolean move = true; float z = 0; int index; int health = 0; int seed = int(random(200)); Doctor(int X,int Y){ x = X+3; y = Y+3; } /* The conditions for health are as follows, 0 = healthy, 1 = sick, 2 = dead. */ void Draw(){ if(health == 0){ stroke(1); fill(15,25,255); // image(myPerson, x, y); rect(x,y,8,8);//The healthy are white rectangles } else if(health == 1){ fill(15,25,25); // image(redPerson, x, y); rect(x,y,6,6);//The sick are green and emaciated. They also move slower - RECTANGLE! } else{ move = false; fill(211,9,9); // image(deadPerson, x, y); rect(x,y,4,4);//the dead are red and immobile. } } void Move(){ if(move == true){ noiseSeed(seed); x+=int(noise(z)*20-10); y+=int(noise(z-200)*20-10); z+=.1; } } void checkHit(){//This is collision detction, the doctor will heal people if they are sick. for(int I = 0;I