資源簡介
JAVA程序,盛大的官方完整源碼,會做的拿走,只有源碼沒有端!希望大神做出端來

代碼片段和文件信息
/*
This?file?is?part?of?the?OdinMS?Maple?Story?Server
????Copyright?(C)?2008?Patrick?Huy??
???????????????????????Matthias?Butz?
???????????????????????Jan?Christian?Meyer?
????This?program?is?free?software:?you?can?redistribute?it?and/or?modify
????it?under?the?terms?of?the?GNU?Affero?General?Public?License?version?3
????as?published?by?the?Free?Software?Foundation.?You?may?not?use?modify
????or?distribute?this?program?under?any?other?version?of?the
????GNU?Affero?General?Public?License.
????This?program?is?distributed?in?the?hope?that?it?will?be?useful
????but?WITHOUT?ANY?WARRANTY;?without?even?the?implied?warranty?of
????MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.??See?the
????GNU?Affero?General?Public?License?for?more?details.
????You?should?have?received?a?copy?of?the?GNU?Affero?General?Public?License
????along?with?this?program.??If?not?see? .
*/
package?net.sf.cherry.client;
import?java.sql.PreparedStatement;
import?java.sql.ResultSet;
import?java.sql.SQLException;
import?java.util.Collection;
import?java.util.Deque;
import?java.util.linkedHashMap;
import?java.util.linkedList;
import?java.util.Map;
import?net.sf.cherry.database.DatabaseConnection;
import?net.sf.cherry.tools.MaplePacketCreator;
public?class?BuddyList?{
????public?void?addCapacity(int?capacity)?{
????????this.capacity?+=?capacity;
????}
????public?enum?BuddyOperation?{
????????ADDED?DELETED
????}
????public?enum?BuddyAddResult?{
????????BUDDYLIST_FULL?ALREADY_ON_LIST?OK
????}
????private?Map?buddies?=?new?linkedHashMap();
????private?int?capacity;
????private?Deque?pendingRequests?=?new?linkedList();
????public?BuddyList(int?capacity)?{
????????super();
????????this.capacity?=?capacity;
????}
????public?boolean?contains(int?characterId)?{
????????return?buddies.containsKey(Integer.valueOf(characterId));
????}
????public?boolean?containsVisible(int?characterId)?{
????????BuddylistEntry?ble?=?buddies.get(characterId);
????????if?(ble?==?null)?{
????????????return?false;
????????}
????????return?ble.isVisible();
????}
????public?int?getCapacity()?{
????????return?capacity;
????}
????public?void?setCapacity(int?capacity)?{
????????this.capacity?=?capacity;
????}
????public?BuddylistEntry?get(int?characterId)?{
????????return?buddies.get(Integer.valueOf(characterId));
????}
????public?BuddylistEntry?get(String?characterName)?{
????????String?lowerCaseName?=?characterName.toLowerCase();
????????for?(BuddylistEntry?ble?:?buddies.values())?{
????????????if?(ble.getName().toLowerCase().equals(lowerCaseName))?{
????????????????return?ble;
????????????}
????????}
????????return?null;
????}
????public?void?put(BuddylistEntry?entry)?{
????????buddies.put(Integer.valueOf(entry.getCharacterId
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????72??2010-01-14?15:27??083源碼\src\.svn\all-wcprops
?????文件????????219??2010-01-14?15:27??083源碼\src\.svn\entries
?????文件??????????2??2010-01-09?14:45??083源碼\src\.svn\format
?????文件?????????76??2010-01-14?15:27??083源碼\src\net\.svn\all-wcprops
?????文件????????222??2010-01-14?15:27??083源碼\src\net\.svn\entries
?????文件??????????2??2010-01-09?14:45??083源碼\src\net\.svn\format
?????文件?????????79??2010-01-14?15:27??083源碼\src\net\sf\.svn\all-wcprops
?????文件????????229??2010-01-14?15:27??083源碼\src\net\sf\.svn\entries
?????文件??????????2??2010-01-09?14:45??083源碼\src\net\sf\.svn\format
?????文件?????????86??2010-01-14?15:27??083源碼\src\net\sf\cherry\.svn\all-wcprops
?????文件????????317??2010-01-14?15:27??083源碼\src\net\sf\cherry\.svn\entries
?????文件??????????2??2010-01-09?14:45??083源碼\src\net\sf\cherry\.svn\format
?????文件???????5265??2010-01-24?22:17??083源碼\src\net\sf\cherry\client\.svn\all-wcprops
?????文件???????5449??2010-01-30?23:45??083源碼\src\net\sf\cherry\client\.svn\entries
?????文件??????????2??2010-01-09?14:45??083源碼\src\net\sf\cherry\client\.svn\format
?????文件???????5384??2010-01-09?14:45??083源碼\src\net\sf\cherry\client\.svn\text-ba
?????文件???????3508??2010-01-09?14:45??083源碼\src\net\sf\cherry\client\.svn\text-ba
?????文件???????1352??2010-01-09?14:45??083源碼\src\net\sf\cherry\client\.svn\text-ba
?????文件???????8480??2010-01-09?14:45??083源碼\src\net\sf\cherry\client\.svn\text-ba
?????文件???????4263??2010-01-09?14:45??083源碼\src\net\sf\cherry\client\.svn\text-ba
?????文件???????2029??2010-01-09?14:45??083源碼\src\net\sf\cherry\client\.svn\text-ba
?????文件???????1837??2010-01-09?14:45??083源碼\src\net\sf\cherry\client\.svn\text-ba
?????文件???????1143??2010-01-09?14:45??083源碼\src\net\sf\cherry\client\.svn\text-ba
?????文件???????1363??2010-01-09?14:45??083源碼\src\net\sf\cherry\client\.svn\text-ba
?????文件???????1461??2010-01-09?14:45??083源碼\src\net\sf\cherry\client\.svn\text-ba
?????文件???????4960??2010-01-09?14:45??083源碼\src\net\sf\cherry\client\.svn\text-ba
?????文件???????2861??2010-01-09?14:45??083源碼\src\net\sf\cherry\client\.svn\text-ba
?????文件???????6859??2010-01-09?14:45??083源碼\src\net\sf\cherry\client\.svn\text-ba
?????文件???????3228??2010-01-09?14:45??083源碼\src\net\sf\cherry\client\.svn\text-ba
?????文件?????195727??2010-01-14?20:12??083源碼\src\net\sf\cherry\client\.svn\text-ba
............此處省略1431個文件信息
評論
共有 條評論