/** * This method takes in the raw renderHint and splits it into usable information, returning an * array of the player directions and updating the bars in the overlay when the line referring to * this player is read. */ public char[] processRenderHint(String[] renderHint) { int numberOfLines = renderHint.length; char[] playerDirections = new char[numberOfLines]; for (int i = 0; i < numberOfLines; i++) { String[] components = renderHint[i].split(" "); if (renderHint[i].startsWith("0 0") && (components.length == 5)) { // this refers to the current player dungeonPanelOverlay.updateBars(components[3], components[4]); } playerDirections[i] = components[2].charAt(0); } return playerDirections; }