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 

S

Saltpeter - Class in com.jonathan.survivor.inventory
 
Saltpeter() - Constructor for class com.jonathan.survivor.inventory.Saltpeter
Creates a Saltpeter item that can be displayed in an inventory slot.
saveCurrentProfile() - Method in class com.jonathan.survivor.managers.ProfileManager
Saves the current profile to the hard drive as a JSON file.
saveProfile(Profile) - Method in class com.jonathan.survivor.managers.ProfileManager
Saves the profile to the hard drive.
scavenged() - Method in class com.jonathan.survivor.entity.Box
Called when the box has been opened by the player.
scavenged() - Method in class com.jonathan.survivor.entity.InteractiveObject
Called when the Interactive GameObject has been scavenged and can no longer be targetted.
scavenged() - Method in class com.jonathan.survivor.entity.Tree
Called when the tree's health has been depleted to zero and has been scavenged.
scavengedObject(InteractiveObject) - Method in interface com.jonathan.survivor.entity.PlayerListener
Delegates when an Interactive GameObject has been scavenged by the player.
Screen - Class in com.jonathan.survivor.screens
 
Screen(Survivor) - Constructor for class com.jonathan.survivor.screens.Screen
 
SCROLL_PANE_HEIGHT - Static variable in class com.jonathan.survivor.hud.SurvivalGuideHud
 
SCROLL_PANE_WIDTH - Static variable in class com.jonathan.survivor.hud.SurvivalGuideHud
Holds the width and height of the scroll pane where entries are displayed in the survival guide.
scrolled(int) - Method in class com.jonathan.survivor.managers.InputManager
 
set(int, int) - Method in class com.jonathan.survivor.math.Cell
Sets the row and the column of the cell to the specified values.
set(float, float, float, float) - Method in class com.jonathan.survivor.math.Line
Changes the two end-points of the line.
set(float, float) - Method in class com.jonathan.survivor.math.Vector2
Sets the x and y components of the vector.
set(Vector2) - Method in class com.jonathan.survivor.math.Vector2
Copies the x and y components of another vector into this vector.
setAcceleration(float, float) - Method in class com.jonathan.survivor.entity.GameObject
Sets the acceleration of the GameObject at their desired (x,y) values.
setAlerted(boolean) - Method in class com.jonathan.survivor.entity.Zombie
Sets whether or not the Zombie is aware of the player.
setAnimationState(AnimationState) - Method in class com.jonathan.survivor.entity.Zombie
Sets the Spine AnimationState instance used to modify the zombie's animations and control them.
setArmCollider(Rectangle) - Method in class com.jonathan.survivor.entity.Zombie
Sets the collider mapped to the zombie's arms.
setChargeCollider(Rectangle) - Method in class com.jonathan.survivor.entity.Zombie
Sets the collider mapped to the zombie when he's charging.
setChargeTime(float) - Method in class com.jonathan.survivor.inventory.RangedWeapon
Gets the amount of time it takes to charge the weapon completely.
setCol(int) - Method in class com.jonathan.survivor.math.Cell
Sets the cell's column
setCollider(Collider) - Method in class com.jonathan.survivor.entity.GameObject
Sets the collider used by the gameObject for collisions.
setCollider(Rectangle) - Method in class com.jonathan.survivor.inventory.MeleeWeapon
Sets the collider around the melee weapon used to detect when the weapon hits an enemy.
setCraftedItem(CraftingManager.Item) - Method in class com.jonathan.survivor.hud.CraftingTable
Sets the item displayed in craftedItem slot.
setDamage(float) - Method in class com.jonathan.survivor.entity.Projectile
Sets the amount of damage dealt by the projectile when hitting a Human instance.
setDamage(float) - Method in class com.jonathan.survivor.inventory.Weapon
Sets the amount of damage the weapon deals in one hit.
setDescription(String) - Method in class com.jonathan.survivor.inventory.Item
Sets the item's description.
setDirection(Human.Direction) - Method in class com.jonathan.survivor.entity.Human
Sets the direction (LEFT or RIGHT) that the GameObject is facing.
setEnabled(boolean) - Method in class com.jonathan.survivor.managers.MusicManager
Set whether the music is enabled or not.
setEnabled(boolean) - Method in class com.jonathan.survivor.managers.SoundManager
Set whether the music is enabled or not.
setHealth(float) - Method in class com.jonathan.survivor.entity.Human
Sets the human's health.
setHealth(float) - Method in class com.jonathan.survivor.entity.Tree
Sets the tree's health.
setHeight(float) - Method in class com.jonathan.survivor.math.Rectangle
Sets the height of the rectangle
setInteractiveState(InteractiveObject.InteractiveState) - Method in class com.jonathan.survivor.entity.InteractiveObject
Sets the current state of the interactive object for logic and rendering purposes.
setInventory(Inventory) - Method in class com.jonathan.survivor.entity.Player
Sets the loadout which stores the items held by the player.
setInventory(Inventory) - Method in class com.jonathan.survivor.Profile
Sets the player's inventory, which contains all of the items collected by the player.
setInvulnerabilityTime(float) - Method in class com.jonathan.survivor.entity.Human
Sets the amount of time that the Human is invulnerable for.
setItem(Item) - Method in class com.jonathan.survivor.entity.ItemObject
Sets the item the GameObject contains and displays.
setItem(Class) - Method in class com.jonathan.survivor.managers.CraftingManager.Item
Sets the item class held by this instance.
setItemAttachment(String) - Method in class com.jonathan.survivor.inventory.Item
Sets the name of the attachment used in Spine to display this Item when it is an object in the world.
setItemMap(HashMap<Class, Integer>) - Method in class com.jonathan.survivor.inventory.Inventory
Sets the ItemMap which maps the Item classes to the amount of the item stored inside the inventory.
setItemProbabilityMap(HashMap<Class, Float>) - Method in class com.jonathan.survivor.entity.InteractiveObject
Sets the HashMap which holds which items will be dropped when this InteractiveObject is scavenged.
setItemProbabilityMap(HashMap<Class, Float>) - Method in class com.jonathan.survivor.entity.Zombie
Sets the HashMap which holds which items will be dropped when this InteractiveObject is scavenged.
setItemState(ItemObject.ItemState) - Method in class com.jonathan.survivor.entity.ItemObject
Sets the ItemState which determines which animation the object should be playing when dropped into the world.
setLeftHandBone(Bone) - Method in class com.jonathan.survivor.entity.Zombie
Sets the bone mapped to the zombie's left hand.
setListener(PlayerListener) - Method in class com.jonathan.survivor.entity.Player
Sets the given listener to have its methods delegated by the player instance.
setLoadout(Loadout) - Method in class com.jonathan.survivor.entity.Player
Sets the player's loadout.
setLoadout(Loadout) - Method in class com.jonathan.survivor.Profile
Sets the loadout used by the player.
setMeleeWeapon(MeleeWeapon) - Method in class com.jonathan.survivor.inventory.Loadout
Sets the MeleeWeapon held in the loadout.
setMessage(String) - Method in class com.jonathan.survivor.hud.ConfirmDialog
 
setMode(Human.Mode) - Method in class com.jonathan.survivor.entity.Human
Sets the mode (EXPLORING or FIGHTING) of the GameObject
setName(String) - Method in class com.jonathan.survivor.inventory.Item
Sets the item's name.
setObjectId(int) - Method in class com.jonathan.survivor.entity.GameObject
Sets the ID of the GameObject, used to identify a GameObject in a specific TerrainLayer.
setPosition(float, float) - Method in class com.jonathan.survivor.entity.GameObject
Sets the bottom-center position of the GameObject at the desired (x,y) coordinates.
setPosition(float, float) - Method in class com.jonathan.survivor.math.Collider
Sets the position of the collider.
setPosition(Sprite, float, float) - Static method in class com.jonathan.survivor.utils.SpriteUtils
Positions the center of the sprite at the given (x,y) coordinates in world coordinates.
setPreviousState(Human.State) - Method in class com.jonathan.survivor.entity.Human
Sets the previous state of the Human.
setProfileId(int) - Method in class com.jonathan.survivor.Profile
Sets the profile Id of the profile.
setQuantity(int) - Method in class com.jonathan.survivor.managers.CraftingManager.Item
Sets the quantity of the item.
setRange(float) - Method in class com.jonathan.survivor.inventory.RangedWeapon
Sets the range of the ranged weapon in world units.
setRangedWeapon(RangedWeapon) - Method in class com.jonathan.survivor.inventory.Loadout
Sets the RangedWeapon equipped by the player.
setReach(float) - Method in class com.jonathan.survivor.inventory.MeleeWeapon
Sets the horizontal reach in world units of the melee weapon.
setRightHandBone(Bone) - Method in class com.jonathan.survivor.entity.Zombie
Sets the bone mapped to the zombie's right hand.
setRow(int) - Method in class com.jonathan.survivor.math.Cell
Sets the cell's row
setScavengedLayerObjects(HashMap<Integer, HashMap<Integer, ArrayList<Integer>>>) - Method in class com.jonathan.survivor.Profile
Sets the HashMap containing objectId arrays for each TerrainLayer.
setSize(float, float) - Method in class com.jonathan.survivor.math.Rectangle
Sets the width and height of the rectangle from its bottom-left position.
setSkeleton(Skeleton) - Method in class com.jonathan.survivor.entity.GameObject
Sets the spine skeleton used by the GameObject to be rendered on-screen.
setState(Human.State) - Method in class com.jonathan.survivor.entity.Human
Sets the state (IDLE, JUMP, etc.) of the GameObject, used to dictate which animations to use.
setState(Human.State) - Method in class com.jonathan.survivor.entity.Zombie
 
setStateTime(float) - Method in class com.jonathan.survivor.entity.GameObject
Sets the amount of time the GameObject has been in a specific state.
setTarget(GameObject) - Method in class com.jonathan.survivor.entity.Human
Sets the target where the human wants to walk to.
setTargetReached(boolean) - Method in class com.jonathan.survivor.entity.Human
Sets whether or not the human has reached his target.
setTargetted(boolean) - Method in class com.jonathan.survivor.entity.Zombie
Sets whether or not the zombie is being targetted by the player.
setTerrainCell(int, int) - Method in class com.jonathan.survivor.entity.GameObject
Sets the cell coordinates where the GameObject is placed on the TerrainLevel.
setTerrainColOffset(int) - Method in class com.jonathan.survivor.Profile
Sets the terrain column offset to be used the next time the game is loaded.
setTerrainRowOffset(int) - Method in class com.jonathan.survivor.Profile
Sets the terrain row offset to be used the next time the game is loaded.
setTiles(Sprite[][]) - Method in class com.jonathan.survivor.entity.Background
Sets the matrix of tile sprites which represents and draws the background.
setVelocity(float, float) - Method in class com.jonathan.survivor.entity.GameObject
Sets the velocity of the GameObject at their desired (x,y) values.
setVelocityX(float) - Method in class com.jonathan.survivor.entity.GameObject
Updates the x-velocity of the GameObject.
setVelocityY(float) - Method in class com.jonathan.survivor.entity.GameObject
Updates the y-velocity of the GameObject.
setVolume(float) - Method in class com.jonathan.survivor.managers.MusicManager
Set the volume of the manager.
setVolume(float) - Method in class com.jonathan.survivor.managers.SoundManager
Set the volume of the manager.
setWalkSpeed(float) - Method in class com.jonathan.survivor.entity.Human
Sets the human's walking speed in the x-direction in meters/second.
setWeaponAttachment(String) - Method in class com.jonathan.survivor.inventory.Weapon
Sets the name of the image (attachment) used in Spine to display the weapon.
setWeaponSlotName(String) - Method in class com.jonathan.survivor.inventory.Weapon
Sets the slot name on the player in Spine where the weapon's image is attached.
setWidth(float) - Method in class com.jonathan.survivor.math.Rectangle
Sets the width of the rectangle
setWorldSeed(int) - Method in class com.jonathan.survivor.Profile
Sets the world seed of the profile.
setX(float) - Method in class com.jonathan.survivor.entity.GameObject
Sets the center x-position of the GameObject.
setX1(float) - Method in class com.jonathan.survivor.math.Line
 
setX2(float) - Method in class com.jonathan.survivor.math.Line
 
setY(float) - Method in class com.jonathan.survivor.entity.GameObject
Sets the bottom y-position of the GameObject.
setY1(float) - Method in class com.jonathan.survivor.math.Line
 
setY2(float) - Method in class com.jonathan.survivor.math.Line
 
setZombieToFight(Zombie) - Method in class com.jonathan.survivor.entity.Player
Sets the zombie the player should fight once he enters combat mode.
shiftDown() - Method in class com.jonathan.survivor.entity.Background
Shifts the tiles so that the top-most tiles migrate to the bottom of the background.
shiftLeft() - Method in class com.jonathan.survivor.entity.Background
Shifts the tiles so that the right-most tiles migrate to the left of the background.
shiftRight() - Method in class com.jonathan.survivor.entity.Background
Shifts the tiles so that the left-most tiles migrate to the right of the background.
shiftUp() - Method in class com.jonathan.survivor.entity.Background
Shifts the tiles so that the bottom-most tiles migrate to the top of the background.
show() - Method in class com.jonathan.survivor.screens.CompanySplashScreen
 
show() - Method in class com.jonathan.survivor.screens.GameScreen
 
show() - Method in class com.jonathan.survivor.screens.LoadingScreen
 
show() - Method in class com.jonathan.survivor.screens.MainMenuScreen
 
show() - Method in class com.jonathan.survivor.screens.WorldSelectScreen
 
SLOT_NAME - Static variable in class com.jonathan.survivor.inventory.Item
Holds the name of the slot where the item's image is attached for the Item skeleton in Spine.
SoundManager - Class in com.jonathan.survivor.managers
 
SoundManager() - Constructor for class com.jonathan.survivor.managers.SoundManager
 
spawn(float, float, float, Human.Direction) - Method in class com.jonathan.survivor.entity.ItemObject
Spawns the item at the given position.
spawnEarthquake(float, float, Human.Direction) - Method in class com.jonathan.survivor.managers.GameObjectManager
Spawns an Earthquake instance at the given bottom-center (x,y) position.
spawnItemObject(float, float, float, Human.Direction) - Method in class com.jonathan.survivor.managers.GameObjectManager
Spawns an ItemObject at the given position.
SpriteUtils - Class in com.jonathan.survivor.utils
Offers helper methods to manipulate sprites.
SpriteUtils() - Constructor for class com.jonathan.survivor.utils.SpriteUtils
 
stop() - Method in class com.jonathan.survivor.managers.MusicManager
Stop the current playing music.
sub(float) - Method in class com.jonathan.survivor.math.Vector2
Subtracts the given amount from the x and y components of this Vector.
sub(float, float) - Method in class com.jonathan.survivor.math.Vector2
Subtracts the x and y arguments from the x and y components of this Vector.
sub(Vector2) - Method in class com.jonathan.survivor.math.Vector2
Adds a vector form this vector.
Sulfur - Class in com.jonathan.survivor.inventory
 
Sulfur() - Constructor for class com.jonathan.survivor.inventory.Sulfur
Creates a Sulfur item that can be displayed in an inventory slot.
SurvivalGuideHud - Class in com.jonathan.survivor.hud
 
SurvivalGuideHud(Stage, World) - Constructor for class com.jonathan.survivor.hud.SurvivalGuideHud
Accepts the stage where widgets are placed.
switchToCombat() - Method in class com.jonathan.survivor.screens.GameScreen.GameListener
Delegated when the versus animation stops playing, and the player switches to combat mode to fight a zombie.
switchToCraftingMenu() - Method in interface com.jonathan.survivor.hud.HudListener
Called when the crafting button is pressed in the backpack.
switchToCraftingMenu() - Method in class com.jonathan.survivor.screens.GameScreen.UiListener
Called when the crafting button is pressed in the backpack.
switchToExploration() - Method in class com.jonathan.survivor.screens.GameScreen.GameListener
Delegated after the KO animation plays in COMBAT mode.
switchToMainMenu() - Method in interface com.jonathan.survivor.hud.HudListener
Called when the main menu button was pressed to transition to the main menu.
switchToMainMenu() - Method in class com.jonathan.survivor.screens.GameScreen.UiListener
Called when the main menu button was pressed in the pause menu.
switchToSurvivalGuide() - Method in interface com.jonathan.survivor.hud.HudListener
Called when the survival guide button is pressed in the backpack, in order to transition to the survival guide hud.
switchToSurvivalGuide() - Method in class com.jonathan.survivor.screens.GameScreen.UiListener
Switches to the survival guide HUD when the survival guide button is pressed in the backpack.
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