public class FoodEntity extends BaseRenderBean
限定符和类型 | 类和说明 |
---|---|
static class |
FoodEntity.FoodBean |
static interface |
FoodEntity.OnImageLoadListener |
限定符和类型 | 字段和说明 |
---|---|
static android.graphics.Bitmap |
sDefaultAvatar |
static com.facebook.imagepipeline.animated.base.AnimatedImage |
sSmokeAnimatedImage |
static int |
SWITCH_COUNT |
ANIMATE_ALPHA, ANIMATE_SCALE, bitmap, bitmapName, id, isRemote, isStopIncreaseY, mAlpha, mAlphaDuration, mAlphaEndTime, mAlphaStartTime, mIncreaseY, mInitialAlpha, mInitialRectF, mInitialScale, mInitialSize, mInitialX, mInitialY, mirrored, mLifeStartTime, mLifeTime, mMappedRectF, mScale, mScaleDuration, mScaleEndTime, mScaleStartTime, mState, needSaveCache, speed, STATE_ALIVE, STATE_DEAD
构造器和说明 |
---|
FoodEntity(com.app.game.eat.EatGameManager.SoundPlayControl delegate) |
限定符和类型 | 方法和说明 |
---|---|
android.graphics.Bitmap |
createFoodWithAvatar(android.graphics.Bitmap bitmap,
FoodEntity.FoodBean foodBean) |
FoodEntity.FoodBean |
getFoodBean() |
RoundEnv |
getRoundEnv() |
int |
getWebpIndex() |
boolean |
isBite() |
boolean |
isBiteInvoked() |
void |
loadWebp(FoodEntity.OnImageLoadListener listener,
android.os.Handler handler) |
void |
playSound(java.lang.String resPath) |
static void |
releaseStaticValue() |
void |
setBiteInvoked(boolean biteInvoked) |
void |
setFoodBean(FoodEntity.FoodBean foodBean) |
void |
setRoundEnv(RoundEnv roundEnv) |
void |
setWebpIndex(int webpIndex) |
void |
showScore() |
void |
switchBmp() |
int |
update(long millis)
子类实现 更新当前状态
|
getAlpha, getAlphaEndTime, getAlphaStartTime, getAlphaTime, getBitHeight, getBitmap, getBitmapName, getBitWidth, getDrawable2d, getId, getIncreaseY, getInitialAlpha, getInitialRectF, getInitialScale, getInitialSize, getInitialY, getLifeStartTime, getLifeTime, getMappedRectF, getScale, getScaleEndTime, getScaleStartTime, getScaleTime, getSpeed, getState, hasCreateDrawable, init, isAlive, isMirrored, isNeedSaveCache, isRemote, isStopIncreaseY, isStopIncreaseY, modify, setAlpha, setAnimation, setBitmap, setBitmapName, setCreateDrawable, setDrawable2D, setId, setIncreaseY, setInitialRectF, setLifeStartTime, setLifeTime, setMappedRectF, setMirrored, setNeedSaveCache, setRemote, setScale, setSpeed, setState, updateRectF
public static final int SWITCH_COUNT
public static com.facebook.imagepipeline.animated.base.AnimatedImage sSmokeAnimatedImage
public static android.graphics.Bitmap sDefaultAvatar
public static void releaseStaticValue()
public boolean isBiteInvoked()
public void setBiteInvoked(boolean biteInvoked)
public int getWebpIndex()
public void setWebpIndex(int webpIndex)
public RoundEnv getRoundEnv()
public void setRoundEnv(RoundEnv roundEnv)
public FoodEntity.FoodBean getFoodBean()
public void setFoodBean(FoodEntity.FoodBean foodBean)
public boolean isBite()
public void showScore()
public void switchBmp()
public void playSound(java.lang.String resPath)
public void loadWebp(FoodEntity.OnImageLoadListener listener, android.os.Handler handler)
public int update(long millis)
BaseRenderBean
update
在类中 BaseRenderBean
millis
- 时间戳public android.graphics.Bitmap createFoodWithAvatar(android.graphics.Bitmap bitmap, FoodEntity.FoodBean foodBean)