Class CharacterTransfer

java.lang.Object
handling.world.CharacterTransfer
All Implemented Interfaces:
Externalizable, Serializable

public class CharacterTransfer extends Object implements Externalizable
玩家跨頻道或進出現金商城時的角色狀態快照,用於無縫轉移。

MapleCharacter 需要在頻道間移動或切換至 handling.cashshop.CashShopServer 時,由 CharacterTransfer(MapleCharacter) 構造器將角色的全部狀態(屬性值、背包、技能、任務、好友清單、騎乘物、寵物、副本標記等) 序列化為本物件,存入 World 層的暫存結構;目標頻道取出後逐欄位還原至新的 MapleCharacter 實例。

實作 Externalizable,手寫 readExternal/writeExternal 以精確控制序列化欄位順序與編碼,避免攜帶 MapleQuestSkill 等大型物件(以 ID 代替)。TranferTime 記錄快照建立時間, 供逾時清除機制使用。

See Also:
  • Field Details

    • characterid

      public int characterid
    • accountid

      public int accountid
    • exp

      public int exp
    • fame

      public int fame
    • pvpExp

      public int pvpExp
    • pvpPoints

      public int pvpPoints
    • meso

      public int meso
    • hair

      public int hair
    • face

      public int face
    • demonMarking

      public int demonMarking
    • mapid

      public int mapid
    • honourexp

      public int honourexp
    • honourlevel

      public int honourlevel
    • guildid

      public int guildid
    • partyid

      public int partyid
    • messengerid

      public int messengerid
    • ACash

      public int ACash
    • MaplePoints

      public int MaplePoints
    • mount_itemid

      public int mount_itemid
    • mount_exp

      public int mount_exp
    • points

      public int points
    • vpoints

      public int vpoints
    • marriageId

      public int marriageId
    • maxhp

      public int maxhp
    • maxmp

      public int maxmp
    • hp

      public int hp
    • mp

      public int mp
    • familyid

      public int familyid
    • seniorid

      public int seniorid
    • junior1

      public int junior1
    • junior2

      public int junior2
    • currentrep

      public int currentrep
    • totalrep

      public int totalrep
    • battleshipHP

      public int battleshipHP
    • gachexp

      public int gachexp
    • guildContribution

      public int guildContribution
    • totalWins

      public int totalWins
    • totalLosses

      public int totalLosses
    • onlinetime

      public int onlinetime
    • channel

      public byte channel
    • gender

      public byte gender
    • gmLevel

      public byte gmLevel
    • guildrank

      public byte guildrank
    • alliancerank

      public byte alliancerank
    • clonez

      public byte clonez
    • fairyExp

      public byte fairyExp
    • cardStack

      public byte cardStack
    • buddysize

      public byte buddysize
    • world

      public byte world
    • initialSpawnPoint

      public byte initialSpawnPoint
    • skinColor

      public byte skinColor
    • mount_level

      public byte mount_level
    • mount_Fatigue

      public byte mount_Fatigue
    • subcategory

      public byte subcategory
    • lastfametime

      public long lastfametime
    • TranferTime

      public long TranferTime
    • name

      public String name
    • accountname

      public String accountname
    • BlessOfFairy

      public String BlessOfFairy
    • BlessOfEmpress

      public String BlessOfEmpress
    • chalkboard

      public String chalkboard
    • tempIP

      public String tempIP
    • level

      public short level
    • str

      public short str
    • dex

      public short dex
    • int_

      public short int_
    • luk

      public short luk
    • remainingAp

      public short remainingAp
    • hpApUsed

      public short hpApUsed
    • job

      public short job
    • fatigue

      public short fatigue
    • inventorys

      public Object inventorys
    • skillmacro

      public Object skillmacro
    • storage

      public Object storage
    • cs

      public Object cs
    • anticheat

      public Object anticheat
    • innerSkills

      public Object innerSkills
    • savedlocation

      public int[] savedlocation
    • wishlist

      public int[] wishlist
    • rocks

      public int[] rocks
    • remainingSp

      public int[] remainingSp
    • regrocks

      public int[] regrocks
    • hyperrocks

      public int[] hyperrocks
    • petStore

      public byte[] petStore
    • imps

      public MapleImp[] imps
    • mbook

      public Map<Integer,Integer> mbook
    • reports

      public Map<Byte,Integer> reports
    • stolenSkills

      public List<Pair<Integer,Boolean>> stolenSkills
    • keymap

      public Map<Integer, Pair<Byte,Integer>> keymap
    • familiars

      public Map<Integer, MonsterFamiliar> familiars
    • finishedAchievements

      public List<Integer> finishedAchievements
    • famedcharacters

      public List<Integer> famedcharacters
    • battledaccs

      public List<Integer> battledaccs
    • extendedSlots

      public List<Integer> extendedSlots
    • rebuy

      public List<Item> rebuy
    • traits

      public final Map<MapleTrait.MapleTraitType, Integer> traits
    • buddies

      public final Map<CharacterNameAndId, Boolean> buddies
    • Quest

      public final Map<Integer,Object> Quest
    • InfoQuest

      public Map<Integer,String> InfoQuest
    • Skills

      public final Map<Integer, SkillEntry> Skills
    • cardsInfo

      public final Map<Integer,CardData> cardsInfo
    • reborns

      public int reborns
    • apstorage

      public int apstorage
    • chronosphere

      public int chronosphere
    • cschronosphere

      public int cschronosphere
    • lastTime

      public long[] lastTime
    • savelastTime

      public long[] savelastTime
    • lastSmegaTime

      public long[] lastSmegaTime
    • lastASmegaTime

      public long[] lastASmegaTime
    • check_msg_BuyMerChant

      public boolean check_msg_BuyMerChant
    • check_msg_Chat

      public boolean check_msg_Chat
    • attackdebug

      public boolean attackdebug
    • DebugMessage

      public boolean DebugMessage
  • Constructor Details

    • CharacterTransfer

      public CharacterTransfer()
    • CharacterTransfer

      public CharacterTransfer(MapleCharacter chr)
  • Method Details