hsgame
接口 Hero

所有超级接口:
Actor, ActorUIPainter, UIPainter

public interface Hero
extends Actor

主角对象。

作者:
HsGame

方法摘要
 boolean addEquipment(EquipmentData equipmentData, ListView listView, int iconX, int iconY)
           
 boolean addEquipment(EquipmentData equipmentData, ListView listView, int iconX, int iconY, int scaleX, int scaleY)
           
 boolean addEquipment(int equipmentId, int count)
          向装备栏添加或减去count件装备。
 boolean addGoods(Goods goods, int count)
           
 boolean addGoods(Goods goods, int count, ListView listView, int iconX, int iconY)
           
 boolean addGoods(Goods goods, int count, ListView listView, int iconX, int iconY, int scaleX, int scaleY)
           
 boolean addGoods(int goodsId, int count)
          向物品栏添加或减去count件物品。
 Item autoComposition(Item item)
          自动合成物品。
 boolean dropEquipment(EquipmentData equipmentData)
          从装备栏中丢弃一件装备。
 void dropEquipment(EquipmentData equipmentData, ListItem listItem)
           
 void dropGoods(Goods goods, int count)
          从物品栏中丢弃count件物品。
 void dropGoods(Goods goods, int count, ListItem listItem, short digitalId)
           
 void dropGoods(int goodsId, int count)
          从物品栏中丢弃count件物品。
 java.util.List<EquipmentData> getEquipmentList()
          获取装备栏列表数组。
 int getEquipmentListCount()
          获取装备栏中装备的数量。
 int getGoodsCount()
          获取物品栏中的物品总量。
 java.util.List<Goods> getGoodsList()
          获取物品栏列表数组。
 int putOffEquipment(EquipmentData equipmentData)
          脱下一件装备。
 boolean putOffEquipment(EquipmentData equipmentData, ListView listView, int iconX, int iconY)
          脱下一件装备。
 boolean putOffEquipment(EquipmentData equipmentData, ListView listView, int iconX, int iconY, int scaleX, int scaleY)
           
 int putOnEquipment(EquipmentData equipmentData)
          穿一个装备。
 int putOnEquipment(EquipmentData equipmentData, int equipedId)
          指定equipedId位置上穿一个装备。
 int putOnEquipment(EquipmentData equipmentData, int equipedId, ListItem listItem, ListView listView, int iconX, int iconY)
          指定equipedId位置上穿一个装备。
 int putOnEquipment(EquipmentData equipmentData, int equipedId, ListItem listItem, ListView listView, int iconX, int iconY, int scaleX, int scaleY)
           
 int putOnEquipment(EquipmentData equipmentData, ListItem listItem, ListView listView, int iconX, int iconY)
          穿一个装备。
 int putOnEquipment(EquipmentData equipmentData, ListItem listItem, ListView listView, int iconX, int iconY, int scaleX, int scaleY)
           
 void refreshGoodsUI(ListView listView, int iconX, int iconY, int scaleX, int scaleY, short digitalId)
           
 void refreshGoodsUI(ListView listView, int iconX, int iconY, int scaleX, int scaleY, short digitalId, int minOrderId, int maxOrderId)
           
 void refreshGoodsUI(ListView listView, int iconX, int iconY, short digitalId)
           
 void resetEquipmentUI(byte equipmentType, ListView listView, int iconX, int iconY)
           
 void resetEquipmentUI(byte equipmentType, ListView listView, int iconX, int iconY, int scaleX, int scaleY)
           
 void resetEquipmentUI(byte equipmentType, ListView listView, int iconX, int iconY, int scaleX, int scaleY, boolean fromSmallToLarge)
           
 void resetEquipmentUI(ListView listView, int iconX, int iconY)
           
 void resetEquipmentUI(ListView listView, int iconX, int iconY, int scaleX, int scaleY)
           
 void resetEquipmentUI(ListView listView, int iconX, int iconY, int scaleX, int scaleY, boolean fromSmallToLarge)
           
 void resetGoodsUI(ListView listView, int iconX, int iconY, int scaleX, int scaleY, short digitalId)
           
 void resetGoodsUI(ListView listView, int iconX, int iconY, int scaleX, int scaleY, short digitalId, boolean fromSmallToLarge)
           
 void resetGoodsUI(ListView listView, int iconX, int iconY, int scaleX, int scaleY, short digitalId, boolean fromSmallToLarge, int minOrderId, int maxOrderId)
           
 void resetGoodsUI(ListView listView, int iconX, int iconY, short digitalId)
           
 void showEquipmentUI(ListView listView, int iconX, int iconY)
           
 void showEquipmentUI(ListView listView, int iconX, int iconY, int scaleX, int scaleY)
           
 void showGoodsUI(ListView listView, int iconX, int iconY, int scaleX, int scaleY, short digitalId)
           
 void showGoodsUI(ListView listView, int iconX, int iconY, int scaleX, int scaleY, short digitalId, int minOrderId, int maxOrderId)
           
 void showGoodsUI(ListView listView, int iconX, int iconY, short digitalId)
           
 int useGoods(Actor actor, Goods goods, int count)
          对actor使用count个物品。
 boolean useGoods(Actor actor, Goods goods, int count, ListItem listItem, short digitalId)
           
 
从接口 hsgame.Actor 继承的方法
addBaseInfo, addCustomData, addFrameDelay, addProperty, addProperty, addTipsText, checkFlag, clearFlag, getBaseInfo, getCustomData, getProperty, getTag, replaceMLG, replaceMLG, setBaseInfo, setCustomData, setFlag, setName, setProperty, setProperty, setTag
 

方法详细信息

getEquipmentList

java.util.List<EquipmentData> getEquipmentList()
获取装备栏列表数组。

返回:

getEquipmentListCount

int getEquipmentListCount()
获取装备栏中装备的数量。

返回:

getGoodsCount

int getGoodsCount()
获取物品栏中的物品总量。

返回:

getGoodsList

java.util.List<Goods> getGoodsList()
获取物品栏列表数组。

返回:

addEquipment

boolean addEquipment(int equipmentId,
                     int count)
向装备栏添加或减去count件装备。

参数:
equipmentId -
count -
返回:

dropEquipment

boolean dropEquipment(EquipmentData equipmentData)
从装备栏中丢弃一件装备。

参数:
equipmentData -
返回:

putOnEquipment

int putOnEquipment(EquipmentData equipmentData)
穿一个装备。

参数:
equipmentData -
返回:
穿在身上的id。

putOnEquipment

int putOnEquipment(EquipmentData equipmentData,
                   int equipedId)
指定equipedId位置上穿一个装备。

参数:
equipmentData -
返回:
穿在身上的id。(-1:等级不够,穿失败)

putOffEquipment

int putOffEquipment(EquipmentData equipmentData)
脱下一件装备。

参数:
equipmentData -
返回:

addEquipment

boolean addEquipment(EquipmentData equipmentData,
                     ListView listView,
                     int iconX,
                     int iconY)

addEquipment

boolean addEquipment(EquipmentData equipmentData,
                     ListView listView,
                     int iconX,
                     int iconY,
                     int scaleX,
                     int scaleY)

putOnEquipment

int putOnEquipment(EquipmentData equipmentData,
                   ListItem listItem,
                   ListView listView,
                   int iconX,
                   int iconY)
穿一个装备。

参数:
equipmentData -
listItem -
listView -
iconX -
iconY -
返回:
穿在身上的id。(-1:等级不够,穿失败)

putOnEquipment

int putOnEquipment(EquipmentData equipmentData,
                   ListItem listItem,
                   ListView listView,
                   int iconX,
                   int iconY,
                   int scaleX,
                   int scaleY)

putOnEquipment

int putOnEquipment(EquipmentData equipmentData,
                   int equipedId,
                   ListItem listItem,
                   ListView listView,
                   int iconX,
                   int iconY)
指定equipedId位置上穿一个装备。

参数:
equipmentData -
equipedId -
listItem -
listView -
iconX -
iconY -
返回:
穿在身上的id。(-1:等级不够,穿失败)

putOnEquipment

int putOnEquipment(EquipmentData equipmentData,
                   int equipedId,
                   ListItem listItem,
                   ListView listView,
                   int iconX,
                   int iconY,
                   int scaleX,
                   int scaleY)

putOffEquipment

boolean putOffEquipment(EquipmentData equipmentData,
                        ListView listView,
                        int iconX,
                        int iconY)
脱下一件装备。

参数:
equipmentData -
listView -
iconX -
iconY -
返回:

putOffEquipment

boolean putOffEquipment(EquipmentData equipmentData,
                        ListView listView,
                        int iconX,
                        int iconY,
                        int scaleX,
                        int scaleY)

dropEquipment

void dropEquipment(EquipmentData equipmentData,
                   ListItem listItem)

showEquipmentUI

void showEquipmentUI(ListView listView,
                     int iconX,
                     int iconY)

showEquipmentUI

void showEquipmentUI(ListView listView,
                     int iconX,
                     int iconY,
                     int scaleX,
                     int scaleY)

resetEquipmentUI

void resetEquipmentUI(ListView listView,
                      int iconX,
                      int iconY)

resetEquipmentUI

void resetEquipmentUI(ListView listView,
                      int iconX,
                      int iconY,
                      int scaleX,
                      int scaleY)

resetEquipmentUI

void resetEquipmentUI(ListView listView,
                      int iconX,
                      int iconY,
                      int scaleX,
                      int scaleY,
                      boolean fromSmallToLarge)

resetEquipmentUI

void resetEquipmentUI(byte equipmentType,
                      ListView listView,
                      int iconX,
                      int iconY)

resetEquipmentUI

void resetEquipmentUI(byte equipmentType,
                      ListView listView,
                      int iconX,
                      int iconY,
                      int scaleX,
                      int scaleY)

resetEquipmentUI

void resetEquipmentUI(byte equipmentType,
                      ListView listView,
                      int iconX,
                      int iconY,
                      int scaleX,
                      int scaleY,
                      boolean fromSmallToLarge)

addGoods

boolean addGoods(int goodsId,
                 int count)
向物品栏添加或减去count件物品。

参数:
goodsId -
count -
返回:

addGoods

boolean addGoods(Goods goods,
                 int count)

dropGoods

void dropGoods(int goodsId,
               int count)
从物品栏中丢弃count件物品。

参数:
goodsId -
count -

dropGoods

void dropGoods(Goods goods,
               int count)
从物品栏中丢弃count件物品。

参数:
goods -

useGoods

int useGoods(Actor actor,
             Goods goods,
             int count)
对actor使用count个物品。

参数:
actor -
goods -
count -
返回:
物品剩余数量。

addGoods

boolean addGoods(Goods goods,
                 int count,
                 ListView listView,
                 int iconX,
                 int iconY)

addGoods

boolean addGoods(Goods goods,
                 int count,
                 ListView listView,
                 int iconX,
                 int iconY,
                 int scaleX,
                 int scaleY)

useGoods

boolean useGoods(Actor actor,
                 Goods goods,
                 int count,
                 ListItem listItem,
                 short digitalId)

dropGoods

void dropGoods(Goods goods,
               int count,
               ListItem listItem,
               short digitalId)

showGoodsUI

void showGoodsUI(ListView listView,
                 int iconX,
                 int iconY,
                 short digitalId)

showGoodsUI

void showGoodsUI(ListView listView,
                 int iconX,
                 int iconY,
                 int scaleX,
                 int scaleY,
                 short digitalId)

showGoodsUI

void showGoodsUI(ListView listView,
                 int iconX,
                 int iconY,
                 int scaleX,
                 int scaleY,
                 short digitalId,
                 int minOrderId,
                 int maxOrderId)

refreshGoodsUI

void refreshGoodsUI(ListView listView,
                    int iconX,
                    int iconY,
                    short digitalId)

refreshGoodsUI

void refreshGoodsUI(ListView listView,
                    int iconX,
                    int iconY,
                    int scaleX,
                    int scaleY,
                    short digitalId)

refreshGoodsUI

void refreshGoodsUI(ListView listView,
                    int iconX,
                    int iconY,
                    int scaleX,
                    int scaleY,
                    short digitalId,
                    int minOrderId,
                    int maxOrderId)

resetGoodsUI

void resetGoodsUI(ListView listView,
                  int iconX,
                  int iconY,
                  short digitalId)

resetGoodsUI

void resetGoodsUI(ListView listView,
                  int iconX,
                  int iconY,
                  int scaleX,
                  int scaleY,
                  short digitalId)

resetGoodsUI

void resetGoodsUI(ListView listView,
                  int iconX,
                  int iconY,
                  int scaleX,
                  int scaleY,
                  short digitalId,
                  boolean fromSmallToLarge)

resetGoodsUI

void resetGoodsUI(ListView listView,
                  int iconX,
                  int iconY,
                  int scaleX,
                  int scaleY,
                  short digitalId,
                  boolean fromSmallToLarge,
                  int minOrderId,
                  int maxOrderId)

autoComposition

Item autoComposition(Item item)
自动合成物品。

参数:
item -
返回: