A B C D E F G H I J K L M N O P R S T U V W X Y Z 

G

GameObject - Class in com.jonathan.survivor.entity
 
GameObject() - Constructor for class com.jonathan.survivor.entity.GameObject
Creates a GameObject with a bottom-bottom-center at (0,0) and a rectangle collider with width/height of zero.
GameObject(float, float, float, float) - Constructor for class com.jonathan.survivor.entity.GameObject
Creates a GameObject with bottom-center at (x,y) and rectangle collider with given width/height.
GameObjectManager - Class in com.jonathan.survivor.managers
 
GameObjectManager(Profile) - Constructor for class com.jonathan.survivor.managers.GameObjectManager
Accepts the player's profile to re-create some GameObjects using save data.
GameObjectPool - Class in com.jonathan.survivor.managers
Pool used to store GameObjects and never delete them.
GameObjectPool() - Constructor for class com.jonathan.survivor.managers.GameObjectPool
 
GameObjectRenderer - Class in com.jonathan.survivor.renderers
 
GameObjectRenderer(World, SpriteBatch, OrthographicCamera) - Constructor for class com.jonathan.survivor.renderers.GameObjectRenderer
Accepts the world from which we find the GameObjects to draw, the SpriteBatch used to draw the GameObjects, and the world camera where the GameObjects are drawn.
gameOver() - Method in class com.jonathan.survivor.screens.GameScreen.GameListener
Delegates from the World when the player dies in combat.
GameOverHud - Class in com.jonathan.survivor.hud
 
GameOverHud(Stage, World) - Constructor for class com.jonathan.survivor.hud.GameOverHud
Accepts the stage where 2d widgets will be drawn and placed, and the world, which will receive information about button presses.
gameOverHudFinished() - Method in interface com.jonathan.survivor.hud.HudListener
Called when the GameOverHud is finished displaying.
gameOverHudFinished() - Method in class com.jonathan.survivor.screens.GameScreen.UiListener
Called by the GameOverHud when it is done being displayed.
GameScreen - Class in com.jonathan.survivor.screens
 
GameScreen(Survivor, Profile) - Constructor for class com.jonathan.survivor.screens.GameScreen
Creates a game screen.
GameScreen.GameListener - Class in com.jonathan.survivor.screens
Listens to any events delegated by the World pertinent to the game.
GameScreen.GameListener() - Constructor for class com.jonathan.survivor.screens.GameScreen.GameListener
 
GameScreen.GameState - Enum in com.jonathan.survivor.screens
 
GameScreen.UiListener - Class in com.jonathan.survivor.screens
Listens to any event that occurs in the HUD of the game.
GameScreen.UiListener() - Constructor for class com.jonathan.survivor.screens.GameScreen.UiListener
 
generateList() - Method in class com.jonathan.survivor.hud.InventoryList
Populates the list with buttons corresponding to all the items in the player's inventory.
generateTable() - Method in class com.jonathan.survivor.hud.CraftingTable
Called when the crafting table's widgets and its table must be created.
GestureManager - Class in com.jonathan.survivor.managers
 
GestureManager(World) - Constructor for class com.jonathan.survivor.managers.GestureManager
Creates an InputManager with the given world.
getAcceleration() - Method in class com.jonathan.survivor.entity.GameObject
Retrieves the acceleration of the gameObject as a Vector2.
getAnimationState() - Method in class com.jonathan.survivor.entity.Zombie
Retrieves the Spine AnimationState instance used to change the zombie's animations and control them.
getArmCollider() - Method in class com.jonathan.survivor.entity.Zombie
Returns the collider mapped to the zombie's arms.
getButtonClass(Actor) - Method in class com.jonathan.survivor.hud.InventoryList
 
getCenterTile() - Method in class com.jonathan.survivor.entity.Background
Returns the tile in the center of the background.
getChargeCollider() - Method in class com.jonathan.survivor.entity.Zombie
Gets the collider mapped to the zombie when he's charging.
getChargeCompletion() - Method in class com.jonathan.survivor.entity.Player
Returns a float between 0 and 1 representing the charge completion of the player's ranged weapon.
getChargeTime() - Method in class com.jonathan.survivor.inventory.RangedWeapon
Gets the amount of time it takes to charge the weapon.
getCol() - Method in class com.jonathan.survivor.math.Cell
Returns the cell's column
getCollider() - Method in class com.jonathan.survivor.entity.GameObject
Returns the collider used by the gameObject for collisions.
getCollider() - Method in class com.jonathan.survivor.inventory.MeleeWeapon
Returns the collider around the melee weapon used to detect when the weapon hits an enemy.
getConfirmButton() - Method in class com.jonathan.survivor.hud.ConfirmDialog
Returns the "Yes" button clicked when the user confirms his choice.
getCrosshair() - Method in class com.jonathan.survivor.entity.Player
Returns the crosshair line, which dictates where the player's ranged weapon will fire and where the bullet will travel.
getCrosshair() - Method in class com.jonathan.survivor.inventory.RangedWeapon
Returns a line depicting where the bullet will travel when the ranged weapon is shot.
getCrosshairPoint() - Method in class com.jonathan.survivor.entity.Player
Returns the position where the weapon crosshair should be placed on the player in world units.
getCrosshairPoint() - Method in class com.jonathan.survivor.inventory.RangedWeapon
Returns the position where the start of the crosshair should be placed on the weapon.
getCurrentProfile() - Method in class com.jonathan.survivor.managers.ProfileManager
Returns the current profile being used by the user.
getDamage() - Method in class com.jonathan.survivor.entity.Projectile
Gets the amount of damage dealt by the projectile when hitting a Human instance.
getDamage() - Method in class com.jonathan.survivor.inventory.Weapon
Gets the amount of damage the weapon deals in one hit.
getDescription() - Method in class com.jonathan.survivor.inventory.Item
Gets the item's description.
getDirection() - Method in class com.jonathan.survivor.entity.Human
Gets the direction (LEFT or RIGHT) that the GameObject is facing.
getFireVelocity() - Method in class com.jonathan.survivor.entity.Projectile
Gets the velocity at which the projectile is fired when the fire() method is called.
getGameObject(Class<T>) - Method in class com.jonathan.survivor.managers.GameObjectManager
Gets a tree GameObject of the given class cached inside one of the Manager's pools.
getHealth() - Method in class com.jonathan.survivor.entity.Human
Gets the human's health.
getHealth() - Method in class com.jonathan.survivor.entity.Tree
Gets the tree's health.
getHeight() - Method in class com.jonathan.survivor.math.Rectangle
Gets the height of the rectangle
getInteractiveState() - Method in class com.jonathan.survivor.entity.InteractiveObject
Gets the current state of the interactive object for logic and rendering purposes.
getInventory() - Method in class com.jonathan.survivor.entity.Player
Gets the loadout which stores the items held by the player.
getInventory() - Method in class com.jonathan.survivor.Profile
Retrieves the player's inventory, which contains all of the items collected by the player.
getInvulnerabilityTime() - Method in class com.jonathan.survivor.entity.Human
Gets the amount of time that the Human is invulnerable for.
getItem() - Method in class com.jonathan.survivor.entity.ItemObject
Gets the item represented by the ItemObject.
getItem() - Method in class com.jonathan.survivor.managers.CraftingManager.Item
Gets the item class held by this instance.
getItemAttachment() - Method in class com.jonathan.survivor.inventory.Item
Retrieves the name of the attachment used in Spine to display this Item when it is an object in the world.
getItemButtonClass(Actor) - Method in class com.jonathan.survivor.hud.CraftingTable
Returns the class belonging to the given button.
getItemMap() - Method in class com.jonathan.survivor.inventory.Inventory
Returns the ItemMap which maps the Item classes to the amount of the item stored inside the inventory.
getItemProbabilityMap() - Method in class com.jonathan.survivor.entity.InteractiveObject
Returns the HashMap which holds which items will be dropped when this InteractiveObject is scavenged.
getItemProbabilityMap() - Method in class com.jonathan.survivor.entity.Zombie
Returns the HashMap which holds which items will be dropped when this InteractiveObject is scavenged.
getItemState() - Method in class com.jonathan.survivor.entity.ItemObject
Gets the ItemState which determines which animation the object should be playing when dropped into the world.
getLeftHandBone() - Method in class com.jonathan.survivor.entity.Zombie
Gets the bone mapped to the zombie's left hand.
getLoadout() - Method in class com.jonathan.survivor.entity.Player
Retrieves the player's loadout containing the player's weapons.
getLoadout() - Method in class com.jonathan.survivor.Profile
Gets the loadout used by the player.
getMaxProfiles() - Method in class com.jonathan.survivor.managers.ProfileManager
Gets the maximum amount of profiles the user can have.
getMeleeWeapon() - Method in class com.jonathan.survivor.entity.Player
Returns the melee weapon that the player has equipped.
getMeleeWeapon() - Method in class com.jonathan.survivor.inventory.Loadout
Gets the MeleeWeapon held in the loadout.
getMeleeWeaponCollider() - Method in class com.jonathan.survivor.entity.Player
Returns the Collider of the player's melee weapon.
getMode() - Method in class com.jonathan.survivor.entity.Human
Gets the mode (EXPLORING or FIGHTING) of the GameObject
getName() - Method in class com.jonathan.survivor.inventory.Item
Gets the item's name.
getObjectId() - Method in class com.jonathan.survivor.entity.GameObject
Gets the ID of the GameObject, used to identify a GameObject in a specific TerrainLayer.
getPlayer() - Method in class com.jonathan.survivor.managers.GameObjectManager
Returns the Player GameObject being managed by the manager.
getPosition() - Method in class com.jonathan.survivor.entity.GameObject
Retrieves the bottom-center position of the gameObject as a Vector2.
getPosition() - Method in class com.jonathan.survivor.math.Collider
Returns the position of the collider.
getPreviousPosition() - Method in class com.jonathan.survivor.entity.GameObject
Returns the GameObject's previous position before the current game tick.
getPreviousState() - Method in class com.jonathan.survivor.entity.Human
Retrieves the previous state of the Human.
getProfile(int) - Method in class com.jonathan.survivor.managers.ProfileManager
Gets the profile with the given id, ranging from 0 to MAX_PROFILES-1.
getProfile(int, boolean) - Method in class com.jonathan.survivor.managers.ProfileManager
Gets the profile with the given id, ranging from 0 to MAX_PROFILES-1.
getProfileId() - Method in class com.jonathan.survivor.Profile
Returns the if of the profile, where 0 is the first profile shown in the world selection list
getQuantity(Class) - Method in class com.jonathan.survivor.inventory.Inventory
Returns the quantity of items of the given class inside the inventory.
getQuantity() - Method in class com.jonathan.survivor.managers.CraftingManager.Item
Gets the quantity of the item.
getRange() - Method in class com.jonathan.survivor.inventory.RangedWeapon
Gets the range of the ranged weapon in world units.
getRangedWeapon() - Method in class com.jonathan.survivor.entity.Player
Returns the ranged weapon that the player has equipped.
getRangedWeapon() - Method in class com.jonathan.survivor.inventory.Loadout
Returns the RangedWeapon equipped by the player.
getReach() - Method in class com.jonathan.survivor.inventory.MeleeWeapon
Gets the horizontal reach in world units of the melee weapon.
getResult(Array<CraftingManager.Item>) - Method in class com.jonathan.survivor.managers.CraftingManager
Returns the resulting item crafted using the given array of items.
getRightHandBone() - Method in class com.jonathan.survivor.entity.Zombie
Gets the bone mapped to the zombie's right hand.
getRow() - Method in class com.jonathan.survivor.math.Cell
Retrieves the cell's row
getScavengedLayerObjects(int, int) - Method in class com.jonathan.survivor.Profile
Returns a list of all of the objectIds that have been scavenged on the given TerrainLayer, denoted by its row and column.
getScavengedLayerObjects() - Method in class com.jonathan.survivor.Profile
Returns a HashMap containing an array for each TerrainLayer.
getSkeleton() - Method in class com.jonathan.survivor.entity.GameObject
Returns the skeleton used to render the GameObject to the screen.
getSlotName() - Method in class com.jonathan.survivor.inventory.Weapon
Returns the slot name on the player in Spine where the weapon's image is attached.
getSprite(Class<T>) - Method in class com.jonathan.survivor.managers.ItemManager
Obtains an Sprite instance of the given class to display in an inventory.
getState() - Method in class com.jonathan.survivor.entity.Human
Gets the state (IDLE, JUMP, etc.) of the GameObject, used to dictate which animations to use.
getStateTime() - Method in class com.jonathan.survivor.entity.GameObject
Gets the amount of time the GameObject has been in a specific state.
getTable() - Method in class com.jonathan.survivor.hud.CraftingTable
Returns the table containing all the widgets in the crafting table.
getTable() - Method in class com.jonathan.survivor.hud.InventoryList
Returns the table containing all of the buttons in the inventory list.
getTarget() - Method in class com.jonathan.survivor.entity.Human
Gets the target where the human wants to walk to.
getTerrainCell() - Method in class com.jonathan.survivor.entity.GameObject
Gets the cell coordinates where the GameObject is placed on the TerrainLevel.
getTerrainColOffset() - Method in class com.jonathan.survivor.Profile
Gets the terrain column offset which was saved to profile.
getTerrainRowOffset() - Method in class com.jonathan.survivor.Profile
Gets the terrain row offset which was saved to profile.
getTiles() - Method in class com.jonathan.survivor.entity.Background
Gets the matrix of tile sprites which represents and draws the background.
getTop() - Method in class com.jonathan.survivor.math.Rectangle
Returns the y-position of the top of the collider in world units.
getVelocity() - Method in class com.jonathan.survivor.entity.GameObject
Retrieves the velocity of the gameObject as a Vector2.
getWalkSpeed() - Method in class com.jonathan.survivor.entity.Human
Gets the human's walking speed in the x-direction.
getWeaponAttachment() - Method in class com.jonathan.survivor.inventory.Weapon
Gets the name of the image (attachment) in Spine which displays the weapon.
getWidth() - Method in class com.jonathan.survivor.math.Rectangle
Retrieves the width of the rectangle
getWorldCamera() - Method in class com.jonathan.survivor.renderers.WorldRenderer
Retrieves the world camera used to render the world.
getWorldCamera(OrthographicCamera) - Method in class com.jonathan.survivor.renderers.WorldRenderer
Sets the world camera used to render the world.
getWorldSeed() - Method in class com.jonathan.survivor.Profile
Returns the world seed used to procedurally generate the world.
getX() - Method in class com.jonathan.survivor.entity.GameObject
Returns the bottom-center x-position of the GameObject.
getX1() - Method in class com.jonathan.survivor.math.Line
Getters and setters for the member variables of this class.
getX2() - Method in class com.jonathan.survivor.math.Line
 
getY() - Method in class com.jonathan.survivor.entity.GameObject
Returns the bottom-center y-position of the GameObject.
getY1() - Method in class com.jonathan.survivor.math.Line
 
getY2() - Method in class com.jonathan.survivor.math.Line
 
getZombieToFight() - Method in class com.jonathan.survivor.entity.Player
Returns the zombie that the player should fight once he enters combat mode.
Gunpowder - Class in com.jonathan.survivor.inventory
 
Gunpowder() - Constructor for class com.jonathan.survivor.inventory.Gunpowder
Creates a Gunpowder item that can be displayed in an inventory slot.
gunpowder - Variable in class com.jonathan.survivor.managers.CraftingManager
Holds all of the possible crafting combinations.
A B C D E F G H I J K L M N O P R S T U V W X Y Z