import java.util.*;

public class Prisoner {

private int IQ; // Intelligence of a prisoner (0 - 100), 100=smartest

private int EQ; // How emotional the prisoner is (0 - 100)100=calmest

private String cagedMaterial;

public int x,y;

public boolean inCell = true;

private int actID;

public boolean isDead = false;

// CONSTRUCTORS

Prisoner(int IQ, int EQ, String cagedMaterial, int x, int y) {

this.IQ = IQ;

this.EQ=EQ;

this.cagedMaterial = cagedMaterial;

this.x = x;

this.y = y;

}

Prisoner() {

// Constructor will random the valule of instance variables

}

// METHODS

public void setAct(int activityID, int period) {

// method sets this prisoner to perform an activity

actID = activityID;

}

public boolean tryEscapeAct () {

// try to escape during an activity, returns true if succeed

return false;

}

public boolean tryEscapeCell() {

// try to escape the from cell, returns true if succeed

return true;

}

public boolean detectGuard(int distance) {

// detect if any guards are around this prisoner depending on the distance

return false;

}

public boolean detectGuard() {

// detect if any guards are around this prisoner.

// depends on how intelligent this prisoner is, the detection distance is determined.

if (IQ >= 0 && IQ <=10)

return detectGuard (10);

return false;

}

}