매칭 덧붙인부분
객체는
package l1j.server.server.datatables;
import l1j.server.server.model.Instance.L1PcInstance;
/** 2013.6.3 개태,큐르 클랜매칭 **/
public class ClanMatching {
private int _id;
private String _name;
private int _class_num;
private int _lawful;
private int _level;
private int _clover;
public int getId(){
return _id;
}
public String getName(){
return _name;
}
public int getClassNum(){
return _class_num;
}
public int getLawful(){
return _lawful;
}
public int getLevel(){
return _level;
}
public int getClover(){
return _clover;
}
public ClanMatching(L1PcInstance pc) {
_id = pc.getId();
_name = pc.getName();
if (pc.isCrown()) {
_class_num = 0;
} else if (pc.isKnight()) {
_class_num = 1;
} else if (pc.isWizard()) {
_class_num = 3;
} else if (pc.isElf()) {
_class_num = 2;
} else if (pc.isDarkelf()) {
_class_num = 4;
} else if (pc.isDragonknight()) {
_class_num = 5;
} else if (pc.isIllusionist()) {
_class_num = 6;
}
_lawful = pc.getLawful();
_level = pc.getLevel();
/** 클로버설정인데 제맘대로임 정보부족**/
if (pc.getLevel() <= 75) {
_clover = 0;
} else if (pc.getLevel() <= 80) {
_clover = 1;
} else {
_clover = 2;
}
}
}
대충이리햇음
[출처] 매칭 덧붙인부분(포기 (비공개 카페)

준희미니 님의 최근 댓글
rt 2021 05.25 ㄳ 2021 05.11 ㄳ 2021 05.11 rt 2021 05.09 rt 2021 04.25