资源简介
冒险岛085服务端源码能进游戏,更多的功能需要自己修复.完全的伸手党清无视..
代码片段和文件信息
/* */ package net.sf.odinms.client;
/* */
/* */ import java.sql.Connection;
/* */ 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.odinms.database.DatabaseConnection;
/* */ import net.sf.odinms.tools.MaplePacketCreator;
/* */ import org.apache.mina.common.IoSession;
/* */
/* */ public class BuddyList
/* */ {
/* 47 */ private Map buddies = new linkedHashMap();
/* */ private int capacity;
/* 49 */ private Deque pendingRequests = new linkedList();
/* */
/* */ public BuddyList(int capacity)
/* */ {
/* 53 */ this.capacity = capacity;
/* */ }
/* */
/* */ public boolean contains(int characterId) {
/* 57 */ return this.buddies.containsKey(Integer.valueOf(characterId));
/* */ }
/* */
/* */ public boolean containsVisible(int characterId) {
/* 61 */ BuddylistEntry ble = (BuddylistEntry)this.buddies.get(Integer.valueOf(characterId));
/* 62 */ if (ble == null) {
/* 63 */ return false;
/* */ }
/* 65 */ return ble.isVisible();
/* */ }
/* */
/* */ public int getCapacity() {
/* 69 */ return this.capacity;
/* */ }
/* */
/* */ public void setCapacity(int capacity) {
/* 73 */ this.capacity = capacity;
/* */ }
/* */
/* */ public BuddylistEntry get(int characterId) {
/* 77 */ return (BuddylistEntry)this.buddies.get(Integer.valueOf(characterId));
/* */ }
/* */
/* */ public BuddylistEntry get(String characterName) {
/* 81 */ String lowerCaseName = characterName.toLowerCase();
/* 82 */ for (BuddylistEntry ble : this.buddies.values()) {
/* 83 */ if (ble.getName().toLowerCase().equals(lowerCaseName)) {
/* 84 */ return ble;
/* */ }
/* */ }
/* 87 */ return null;
/* */ }
/* */
/* */ public void put(BuddylistEntry entry) {
/* 91 */ this.buddies.put(Integer.valueOf(entry.getCharacterId()) entry);
/* */ }
/* */
/* */ public void remove(int characterId) {
/* 95 */ this.buddies.remove(Integer.valueOf(characterId));
/* */ }
/* */
/* */ public Collection getBuddies() {
/* 99 */ return this.buddies.values();
/* */ }
/* */
/* */ public boolean isFull() {
/* 103 */ return this.buddies.size() >= this.capacity;
/* */ }
/* */
/* */ public int[] getBuddyIds() {
/* 107 */ int[] buddyIds = new int[this.buddies.size()];
/* 108 */ int i = 0;
/* 109 */ for (BuddylistEntry ble : this.buddies.values()) {
/*
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 3210 2016-06-23 20:52 src\net\sf\odinms\client\anticheat\CheatingOffense.java
....... 3694 2016-06-23 20:52 src\net\sf\odinms\client\anticheat\CheatingOffenseEntry.java
文件 4521 2016-06-24 12:59 src\net\sf\odinms\client\anticheat\CheatingOffensePersister.java
文件 13663 2016-06-24 12:58 src\net\sf\odinms\client\anticheat\CheatTracker.java
....... 6056 2016-06-23 20:52 src\net\sf\odinms\client\BuddyList.java
....... 2877 2016-06-23 20:52 src\net\sf\odinms\client\BuddylistEntry.java
....... 681 2016-06-23 20:52 src\net\sf\odinms\client\CharacterNameAndId.java
文件 10653 2016-06-24 09:14 src\net\sf\odinms\client\Equip.java
....... 3520 2016-06-23 20:52 src\net\sf\odinms\client\ExpTable.java
....... 1955 2016-06-23 20:52 src\net\sf\odinms\client\IEquip.java
....... 1344 2016-06-23 20:52 src\net\sf\odinms\client\IItem.java
....... 343 2016-06-23 20:52 src\net\sf\odinms\client\InventoryContainer.java
....... 559 2016-06-23 20:52 src\net\sf\odinms\client\InventoryException.java
....... 825 2016-06-23 20:52 src\net\sf\odinms\client\ISkill.java
....... 5272 2016-06-23 20:52 src\net\sf\odinms\client\Item.java
文件 2339 2016-06-24 09:17 src\net\sf\odinms\client\LoginCrypto.java
....... 5337 2016-06-23 20:52 src\net\sf\odinms\client\LoginCryptoLegacy.java
....... 2747 2016-06-23 20:52 src\net\sf\odinms\client\MapleBuffStat.java
....... 636 2016-06-23 20:52 src\net\sf\odinms\client\MapleChalkboard.java
文件 258918 2016-06-25 21:01 src\net\sf\odinms\client\MapleCharacter.java
文件 2424 2016-06-25 17:42 src\net\sf\odinms\client\MapleCharacterUtil.java
文件 53720 2016-06-28 17:55 src\net\sf\odinms\client\MapleClient.java
文件 6457 2016-06-24 09:21 src\net\sf\odinms\client\MapleCSInventory.java
文件 3189 2016-06-24 09:23 src\net\sf\odinms\client\MapleCSInventoryItem.java
....... 948 2016-06-23 20:52 src\net\sf\odinms\client\MapleDisease.java
....... 1872 2016-06-23 20:52 src\net\sf\odinms\client\MapleFamily.java
....... 2977 2016-06-23 20:52 src\net\sf\odinms\client\MapleFamilyEntry.java
文件 9427 2016-06-24 12:44 src\net\sf\odinms\client\MapleInventory.java
....... 1563 2016-06-23 20:52 src\net\sf\odinms\client\MapleInventoryType.java
....... 6568 2016-06-23 20:52 src\net\sf\odinms\client\MapleJob.java
............此处省略476个文件信息
- 上一篇:基于神经网络的语音情感识别
- 下一篇:图案解锁的源码
评论
共有 条评论