public void addCritHit(String s) { int ewSpot = s.indexOf(':'); int loc = Integer.parseInt(s.substring(0, ewSpot)); int slot = Integer.parseInt(s.substring(ewSpot + 1)); critHits.add(new CritHit(loc, slot - 1)); } }
public void addCritHit(String s) { int ewSpot = s.indexOf(':'); int loc = Integer.parseInt(s.substring(0, ewSpot)); int slot = Integer.parseInt(s.substring(ewSpot + 1)); critHits.add(new CritHit(loc, slot - 1)); } }