Ejemplo n.º 1
0
  protected static CharacterWrapper _testScenario2(GameData data, boolean preFatigue) {
    GameObject character = data.getGameObjectByName("White Knight");
    System.out.println(character);

    CharacterWrapper wrapper = new CharacterWrapper(character);
    wrapper.setCharacterLevel(4);
    wrapper.initChits();

    // artifically fatigue and wound some chits
    ArrayList list = new ArrayList(wrapper.getAllChits());
    Collections.sort(list);
    if (preFatigue) {
      CharacterActionChitComponent aChit = (CharacterActionChitComponent) list.get(3);
      aChit.makeFatigued();
      aChit = (CharacterActionChitComponent) list.get(7);
      aChit.makeFatigued();
    }
    //		//for (int i=4;i<11;i++) {
    //			aChit = (CharacterActionChitComponent)list.get(i);
    //			aChit.makeWounded();
    //		}
    //		for (int i=8;i<10;i++) {
    //			CharacterActionChitComponent aChit = (CharacterActionChitComponent)list.get(i);
    //			aChit.makeWounded();
    //		}
    //		(new Curse(new JFrame())).applyThree(wrapper);
    return wrapper;
  }