class Character { // Put name, personality, etc info in here too String name = ""; // Holds the EmoBranch (where on the dial) and strength (how far in/out) EmoState state = new EmoState(); // Used for detecting loading new image and probably other things in the future ArrayList hist = new ArrayList(); ArrayList interacts = new ArrayList(); // location for drawing int xpos = 100; int ypos = 200; Character(String name) { this.name = name; } // Saves the previous state and changes the current state void setEmoBranch(int value) { hist.add(state.copyCurrState()); state.setEmoBranch(value); } // Saves the previous state and changes the current state void setEmoStr(int value) { hist.add(state.copyCurrState()); state.setEmoStr(value); } // void setEmoState(EmoState estate){ hist.add(state.copyCurrState()); state = estate.copyCurrState(); } void drawInteracts() { int xposInteracts = 350; int yposInteracts = 40; textFont(fontBig); fill(0, 0, 0); text("Interactions:", xposInteracts, yposInteracts); for (int i = 0; i < interacts.size(); i++) { Interaction interAct = (Interaction) interacts.get(i); textFont(fontSmall); interAct.x = xposInteracts +5; interAct.y = (yposInteracts+15) + (i*25); interAct.h = 22; stroke (interAct.c); fill(255, 255, 255); rect(interAct.x, interAct.y, interAct.w, interAct.h); fill(0, 0, 0); text(interAct.name, interAct.x+10, interAct.y+15); } } }