- hasMeleeWeapon() - Method in class com.jonathan.survivor.entity.Player
-
Returns true if the player has a melee weapon equipped.
- hasRangedWeapon() - Method in class com.jonathan.survivor.entity.Player
-
Returns true if the player has a ranged weapon equipped.
- hasRangedWeaponOut() - Method in class com.jonathan.survivor.entity.Player
-
Returns true if the player has his ranged weapon out and visible.
- HEADER_X_OFFSET - Static variable in class com.jonathan.survivor.hud.CraftingHud
-
Holds the offset used to anchor the header to the top-center of the screen.
- HEADER_X_OFFSET - Static variable in class com.jonathan.survivor.hud.SurvivalGuideHud
-
Stores the x-offset of the "Guide" header relative to the center of the screen.
- HEADER_Y_OFFSET - Static variable in class com.jonathan.survivor.hud.BackpackHud
-
Stores the offset between the bottom of the "Backpack" header and the top of the buttons.
- HEADER_Y_OFFSET - Static variable in class com.jonathan.survivor.hud.CraftingHud
-
- HEADER_Y_OFFSET - Static variable in class com.jonathan.survivor.hud.SurvivalGuideHud
-
Stores the offset between the bottom of the "Guide" header and the top of the listof entries.
- HEADER_Y_OFFSET - Static variable in class com.jonathan.survivor.screens.BackpackHud
-
Stores the offset between the bottom of the "Backpack" header and the top of the buttons.
- hide() - Method in class com.jonathan.survivor.screens.Screen
-
Called when the user switches out of this screen.
- hit(Human) - Method in class com.jonathan.survivor.entity.Projectile
-
Called when the projectile hits a Human.
- hit(GameObject) - Method in class com.jonathan.survivor.inventory.MeleeWeapon
-
Called when the MeleeWeapon has hit a GameObject and should deal damage to it.
- hit(GameObject) - Method in class com.jonathan.survivor.inventory.RangedWeapon
-
Called when the RangedWeapon has hit a GameObject and should deal damage to it.
- hitHead(Zombie) - Method in class com.jonathan.survivor.entity.Player
-
Called when the player hits a zombie's head.
- hitTree() - Method in class com.jonathan.survivor.entity.Player
-
Called when the player has hit the tree stored as his target.
- hitTree(Tree) - Method in class com.jonathan.survivor.inventory.Axe
-
Called when the MeleeWeapon has hit a tree and should deal damage to it.
- hitTree(Tree) - Method in class com.jonathan.survivor.inventory.MeleeWeapon
-
Called when the MeleeWeapon has hit a tree and should deal damage to it.
- Hud - Class in com.jonathan.survivor.hud
-
- Hud(Stage, World) - Constructor for class com.jonathan.survivor.hud.Hud
-
Accepts the stage where 2d widgets will be contained and drawn, and the world, where input events will be dispatched.
- HudListener - Interface in com.jonathan.survivor.hud
-
- Human - Class in com.jonathan.survivor.entity
-
A Human instance is a GameObject that can move around and that either has some form of AI or is controlled by the player.
- Human(float, float, float, float) - Constructor for class com.jonathan.survivor.entity.Human
-
Creates a Human GameObject instance whose bottom-center is at (x,y) and whose Rectangle collider is initialized with the given width and height.
- Human.Direction - Enum in com.jonathan.survivor.entity
-
- Human.Mode - Enum in com.jonathan.survivor.entity
-
- Human.State - Enum in com.jonathan.survivor.entity
-