netsurfers.gicp.net.game
类 Player

java.lang.Object
  继承者 netsurfers.gicp.net.game.Player

public class Player
extends Object

Class player

作者:
Ziliang Wang E-mail: Lional.King@gmail.com

字段摘要
 Bag mBag
           
 List<Items> mEquipments
           
 List<Quest> mQuests
           
 int[][] mQuickSlot
           
 List<Spell> mSpells
           
 
构造方法摘要
Player()
           
Player(int guid)
           
 
方法摘要
 boolean getAttack()
           
 ContentValues getCharacterContentValues()
          Get the character content values when save the game
 float getCurrentX()
           
 float getCurrentY()
           
 ContentValues getEquipmentsetsContentValues()
          Get the equipment sets content values when save the game
 ContentValues getInventoryContentValues(int slot)
          Get the inventory content values when save the game
 int getMapID()
           
 Constants.ORIENTATION getPlayerState()
           
 ContentValues getQuestContentValues(int i)
          Get the quest content values when save the game
 int getSizeOfQuests()
          Get size of list quests
 int getSizeOfSpells()
          Get size of list spells
 int getSpeed()
           
 ContentValues getSpellContentValues(int i)
          Get the spell content values when save the game
 void onMove(Constants.ORIENTATION orient)
           
 void onUpdate()
           
 void release()
           
 void setCurrentX(float x)
           
 void setCurrentY(float y)
           
 void setMoveing(boolean moving)
           
 void setPlayerState(Constants.ORIENTATION orient)
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

mEquipments

public List<Items> mEquipments

mBag

public Bag mBag

mQuests

public List<Quest> mQuests

mSpells

public List<Spell> mSpells

mQuickSlot

public int[][] mQuickSlot
构造方法详细信息

Player

public Player()

Player

public Player(int guid)
方法详细信息

getAttack

public boolean getAttack()

getSpeed

public int getSpeed()

getCurrentX

public float getCurrentX()

setCurrentX

public void setCurrentX(float x)

getCurrentY

public float getCurrentY()

setCurrentY

public void setCurrentY(float y)

getPlayerState

public Constants.ORIENTATION getPlayerState()

setPlayerState

public void setPlayerState(Constants.ORIENTATION orient)

getMapID

public int getMapID()

onMove

public void onMove(Constants.ORIENTATION orient)

setMoveing

public void setMoveing(boolean moving)

release

public void release()

getCharacterContentValues

public ContentValues getCharacterContentValues()
Get the character content values when save the game

返回:
current character of player content values

getEquipmentsetsContentValues

public ContentValues getEquipmentsetsContentValues()
Get the equipment sets content values when save the game

返回:
current equipment sets of player content values

getInventoryContentValues

public ContentValues getInventoryContentValues(int slot)
Get the inventory content values when save the game

参数:
slot - slot of the bag(values 0 - 27)
返回:
current inventory of player content values

getQuestContentValues

public ContentValues getQuestContentValues(int i)
Get the quest content values when save the game

参数:
i - quest size(values 0 - getSizeOfQuests())
返回:
current quest of player content values

getSpellContentValues

public ContentValues getSpellContentValues(int i)
Get the spell content values when save the game

参数:
i - spell size(values 0 - getSizeOfSpells())
返回:
current spell of player content values

getSizeOfQuests

public int getSizeOfQuests()
Get size of list quests

返回:
the number of quests in this list

getSizeOfSpells

public int getSizeOfSpells()
Get size of list spells

返回:
the number of spells in this list

onUpdate

public void onUpdate()