rt

Reader's Theatre
Log | Files | Refs | README | LICENSE

game.java (559B)


      1 package space.nocebo;
      2 
      3 public class game {
      4 	private script s;
      5 	private group g;
      6 
      7 	public game(script sc, group gr) {
      8 		try {
      9 			String[][] roles;
     10 			g = (group)gr.clone();
     11 			roles = sc.getRoles();
     12 			s = new script(roles[0][0], roles[1][0], roles[2][0], sc.getDlevel());
     13 		} catch (CloneNotSupportedException ex) {
     14 			System.out.println("CloneNotSupportedException" + ex);
     15 		}
     16 	}
     17 
     18 	public boolean isThisMyGame(group gr) {
     19 		if (gr.getGid().compareTo(g.getGid()) == 0)
     20 			return true;
     21 		else
     22 			return false;
     23 	}
     24 
     25 	public script getScript() {
     26 		return s;
     27 	}
     28 }