public void updateMember(MaplePartyCharacter member) { for (int i = 0; i < members.size(); i++) { MaplePartyCharacter chr = members.get(i); if (chr.equals(member)) { members.set(i, member); } } }
public MaplePartyCharacter getMemberById(int id) { for (MaplePartyCharacter chr : members) { if (chr.getId() == id) { return chr; } } return null; }