/** A Wizard with a smattering of problems */ protected static CharacterWrapper _testScenario1(GameData data) { GameObject character = data.getGameObjectByName("Wizard"); GameObject f1 = data.getGameObjectByName("Test Fly Chit 1"); character.add(f1); 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); int n = 0; for (Iterator i = list.iterator(); i.hasNext(); ) { CharacterActionChitComponent aChit = (CharacterActionChitComponent) i.next(); System.out.println((n++) + " " + aChit.getGameObject().getName()); } CharacterActionChitComponent aChit = (CharacterActionChitComponent) list.get(1); aChit.getGameObject().setThisAttribute("action", "FLY"); aChit.getGameObject().setThisAttribute("effort", "1"); // aChit.makeFatigued(); // for (int i=4;i<11;i++) { // aChit = (CharacterActionChitComponent)list.get(i); // aChit.makeWounded(); // } aChit = (CharacterActionChitComponent) list.get(11); aChit.enchant(); // (new Curse(new JFrame())).applyThree(wrapper); return wrapper; }