Package view.utilz
Interface Constants.PlayerConstants
- Enclosing interface:
Constants
public static interface Constants.PlayerConstants
Interface containing constants related to the player view.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic intgetSpriteAmount(int playerAnimation) Returns the number of sprites for the given player animation.
-
Field Details
-
IDLE_ANIMATION
static final int IDLE_ANIMATION- See Also:
-
RUNNING_ANIMATION
static final int RUNNING_ANIMATION- See Also:
-
JUMPING_ANIMATION
static final int JUMPING_ANIMATION- See Also:
-
FALLING_ANIMATION
static final int FALLING_ANIMATION- See Also:
-
ATTACK_ANIMATION
static final int ATTACK_ANIMATION- See Also:
-
DEAD_ANIMATION
static final int DEAD_ANIMATION- See Also:
-
-
Method Details
-
getSpriteAmount
static int getSpriteAmount(int playerAnimation) Returns the number of sprites for the given player animation.- Parameters:
playerAnimation- the animation of the player- Returns:
- the number of sprites
-