import java.io.*;

public class Guard {

        private boolean holdWeapon;

         private int x, y;

private int distanceGuarded;

�@

// CONSTRUCTOR

        Guard (int x, int y, boolean holdWeapon, int distanceGuarded) {

this.x = x;

this.y = y;

this.holdWeapon = holdWeapon;

        }

// METHODS

        public boolean detPrisonerOutsideCell() {

// depends on its guarded distance, checks if any prisoner is outside the cell

        System.out.println("Warning~!!!!!Warning~~!!!!!!");

         Hold();

System.out.println("Prisoner Escaped~!!!!!!!!!\n\n");

Hold();

System.out.println("Found Prisoner's Location............\n\n");

Hold();

return true;

}

public boolean actionTaken() {

// action taken when a prisoner is outside cell

// ie, if without weapon, capture prisoner, else kill!

// returns true if killing prisoner...

System.out.println("Ah.....Ah....Please Don't KILL ME~!!\n\n");

Hold();

System.out.println("PRISONER KILLED!!!!");

Hold();

return true;

}

private void Hold()

{

String line;

�@

try

{

BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

System.out.println("\tpress enter to continue.");

line = br.readLine();

}

catch(Exception e)

{

}

}

}