Example #1
0
 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);
     }
   }
 }
Example #2
0
 public MaplePartyCharacter getMemberById(int id) {
   for (MaplePartyCharacter chr : members) {
     if (chr.getId() == id) {
       return chr;
     }
   }
   return null;
 }