Package view.utilz
Interface Constants.EnemyConstants
- Enclosing interface:
Constants
public static interface Constants.EnemyConstants
Interface containing constants related to enemies views.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final floatstatic final floatstatic final intstatic final int -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic intgetSpriteAmount(Constants.EnemyConstants.EnemyType enemyType, int enemyState) Returns the number of sprites for the given enemy type and state.
-
Field Details
-
WALKING_ANIMATION_NORMAL
static final int WALKING_ANIMATION_NORMAL- See Also:
-
WALKING_ANIMATION_HUNGRY
static final int WALKING_ANIMATION_HUNGRY- See Also:
-
BOBBLE_GREEN_ANIMATION
static final int BOBBLE_GREEN_ANIMATION- See Also:
-
BOBBLE_RED_ANIMATION
static final int BOBBLE_RED_ANIMATION- See Also:
-
DEAD_ANIMATION
static final int DEAD_ANIMATION- See Also:
-
BOBBLE_GREEN_POP_ANIMATION
static final int BOBBLE_GREEN_POP_ANIMATION- See Also:
-
BOBBLE_RED_POP_ANIMATION
static final int BOBBLE_RED_POP_ANIMATION- See Also:
-
NORMAL_ANIMATION_SPEED_MULTIPLIER
static final float NORMAL_ANIMATION_SPEED_MULTIPLIER- See Also:
-
HUNGRY_ANIMATION_SPEED_MULTIPLIER
static final float HUNGRY_ANIMATION_SPEED_MULTIPLIER- See Also:
-
-
Method Details
-
getSpriteAmount
Returns the number of sprites for the given enemy type and state.- Parameters:
enemyType- the type of the enemyenemyState- the state of the enemy- Returns:
- the number of sprites
-