Facebook
From Unreliable Rhinoceros, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 195
  1. package pl.rpg.game;
  2. import java.util.ArrayList;
  3. import java.util.Map;
  4. import java.util.TreeMap;
  5.  
  6. public class Histories {
  7.  
  8.         ArrayList<History> histories = new ArrayList<>(5);
  9.  
  10.     public Histories() {
  11.  
  12.  
  13.  
  14.         String tekst = "U see big classroom with many chairs. On almost every chair sits one student. In" +
  15.                 " this moment you recalled that today is exam day! In whole classroom only one chair is free." +
  16.                 " Bad news. It's the chair in front of your professor. What will you do young student? ";
  17.         Map<Character, Way> mapa = new TreeMap<>();
  18.         mapa.put('W', new Way("Sit in this chair and try to pass this exam (You didn't attend this lecture)",
  19.                 2));
  20.         mapa.put('S', new Way("Pretend that you have made a mistake and run as fast as you can",
  21.                 3));
  22.         History history = new History(tekst, mapa);
  23.         histories.add(history);
  24.     }
  25.  
  26.     public History getHistory(int id) { return histories.get(); }
  27. }