netsurfers.gicp.net.common
类 BitmapMgr

java.lang.Object
  继承者 netsurfers.gicp.net.common.BitmapMgr

public class BitmapMgr
extends Object

This class manager all the bitmap source

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

字段摘要
 int ACTIONBAR
           
 int BAGBOARD
           
 int[] BITMAP
           
 int CHARACTERBOARD
           
static int[] CREATURE
           
 int DIALOGUEBOARD
           
static int[] GAMEOBJECT
           
 int HEALTHBAR
           
static int[] ITEM
           
 int MANABAR
           
 int MAPBOARD
           
 int MENUBAR
           
 int[] PLAYER
           
 int QUESTBOARD
           
static int[] SPELL
           
 int SPELLBOARD
           
 int STATEBARS
           
 int SYSTEMBOARD
           
 
构造方法摘要
BitmapMgr(Resources res)
          Constructor function of bitmap manager
 
方法摘要
 Bitmap getBitmap(int id)
          You can get bitmap by resources id
 Bitmap getCreatureBitmap(int id)
          You can get creature bitmap by resources id
 Bitmap getGameObjectBitmap(int id)
          You can get game object bitmap by resources id
 Bitmap getItemBitmap(int id)
          You can get item bitmap by resources id
 Bitmap getPlayerBitmap(int id)
          You can get player bitmap by resources id
 Bitmap getSpellBitmap(int id)
          You can get spell bitmap by resources id
 void release()
          You can release all of the bitmap
 void releaseBitmap(int id)
          You can release bitmap by resources id
 void releaseCreatureBitmap(int id)
          You can release creature bitmap by resources id
 void releaseGameObjectBitmap(int id)
          You can release game object bitmap by resources id
 void releaseItemBitmap(int id)
          You can release item bitmap by resources id
 void releasePlayerBitmap(int id)
          You can release player bitmap by resources id
 void releaseSpellBitmap(int id)
          You can release spell bitmap by resources id
 Bitmap setBitmap(int id)
          You can set bitmap by resources id
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

BITMAP

public final int[] BITMAP

STATEBARS

public final int STATEBARS
另请参见:
常量字段值

HEALTHBAR

public final int HEALTHBAR
另请参见:
常量字段值

MANABAR

public final int MANABAR
另请参见:
常量字段值

MENUBAR

public final int MENUBAR
另请参见:
常量字段值

ACTIONBAR

public final int ACTIONBAR
另请参见:
常量字段值

BAGBOARD

public final int BAGBOARD
另请参见:
常量字段值

CHARACTERBOARD

public final int CHARACTERBOARD
另请参见:
常量字段值

MAPBOARD

public final int MAPBOARD
另请参见:
常量字段值

SPELLBOARD

public final int SPELLBOARD
另请参见:
常量字段值

SYSTEMBOARD

public final int SYSTEMBOARD
另请参见:
常量字段值

QUESTBOARD

public final int QUESTBOARD
另请参见:
常量字段值

DIALOGUEBOARD

public final int DIALOGUEBOARD
另请参见:
常量字段值

PLAYER

public final int[] PLAYER

CREATURE

public static final int[] CREATURE

GAMEOBJECT

public static final int[] GAMEOBJECT

ITEM

public static final int[] ITEM

SPELL

public static final int[] SPELL
构造方法详细信息

BitmapMgr

public BitmapMgr(Resources res)
Constructor function of bitmap manager

参数:
res - Resources is from the application program
另请参见:
Activity
方法详细信息

setBitmap

public Bitmap setBitmap(int id)
You can set bitmap by resources id

参数:
id - Res is the resources id in R

getBitmap

public Bitmap getBitmap(int id)
You can get bitmap by resources id

参数:
id - Res is the resources id in R

releaseBitmap

public void releaseBitmap(int id)
You can release bitmap by resources id

参数:
id - Res is the resources id in R

getPlayerBitmap

public Bitmap getPlayerBitmap(int id)
You can get player bitmap by resources id

参数:
id - Res is the resources id in R

releasePlayerBitmap

public void releasePlayerBitmap(int id)
You can release player bitmap by resources id

参数:
id - Res is the resources id in R

getCreatureBitmap

public Bitmap getCreatureBitmap(int id)
You can get creature bitmap by resources id

参数:
id - Res is the resources id in R

releaseCreatureBitmap

public void releaseCreatureBitmap(int id)
You can release creature bitmap by resources id

参数:
id - Res is the resources id in R

getGameObjectBitmap

public Bitmap getGameObjectBitmap(int id)
You can get game object bitmap by resources id

参数:
id - Res is the resources id in R

releaseGameObjectBitmap

public void releaseGameObjectBitmap(int id)
You can release game object bitmap by resources id

参数:
id - Res is the resources id in R

getItemBitmap

public Bitmap getItemBitmap(int id)
You can get item bitmap by resources id

参数:
id - Res is the resources id in R

releaseItemBitmap

public void releaseItemBitmap(int id)
You can release item bitmap by resources id

参数:
id - Res is the resources id in R

getSpellBitmap

public Bitmap getSpellBitmap(int id)
You can get spell bitmap by resources id

参数:
id - Res is the resources id in R

releaseSpellBitmap

public void releaseSpellBitmap(int id)
You can release spell bitmap by resources id

参数:
id - Res is the resources id in R

release

public void release()
You can release all of the bitmap