- act() - Method in class io.lerk.soultraps.components.Button
-
Runs the click handler if necessary.
- act() - Method in class io.lerk.soultraps.components.HUD
-
Updates the HUD's image if necessary.
- act() - Method in class io.lerk.soultraps.mobs.BaseMob
-
Method that throttles the mobs behavior.
- act() - Method in class io.lerk.soultraps.sys.dialog.DialogManager
-
In this method, the
DialogManager
checks for available dialogs and displays their messages accordingly.
- act() - Method in class io.lerk.soultraps.sys.dialog.Message
-
This method checks if the spacebar is pressed and removes the message if that's the case.
- addItem(Item) - Method in class io.lerk.soultraps.mobs.Player
-
Method used to add an
Item
to the players inventory.
- addMob(BaseMob) - Method in class io.lerk.soultraps.levels.Level
-
Adds a mob at a random "free" (of trees, bushes, stones, etc.) tile.
- animateWalking() - Method in class io.lerk.soultraps.mobs.BaseMob
-
Animate mob.
- animateWalking() - Method in class io.lerk.soultraps.mobs.Enemies.Bat
-
Animates walking of the lumberjack.
- animateWalking() - Method in class io.lerk.soultraps.mobs.Enemies.Wolf
-
Animates walking of the lumberjack.
- animateWalking() - Method in class io.lerk.soultraps.mobs.Enemies.Zombie
-
Animates walking of the lumberjack.
- animateWalking() - Method in class io.lerk.soultraps.mobs.friendly.Lumberjack
-
Animates walking of the lumberjack.
- animateWalking() - Method in class io.lerk.soultraps.mobs.Player
-
Animates the walking of the player.
- animateWalking() - Method in class io.lerk.soultraps.mobs.stat1c.Floppy
-
Stub.
- animateWalking() - Method in class io.lerk.soultraps.mobs.stat1c.Portal
-
Stub.
- attack() - Method in class io.lerk.soultraps.mobs.Enemies.Bat
-
Determines the damage dealt to the player.
- attack() - Method in class io.lerk.soultraps.mobs.Enemies.Wolf
-
Determines the damage dealt to the player.
- attack() - Method in class io.lerk.soultraps.mobs.Enemies.Zombie
-
Determines the damage dealt to the player.
- attack() - Method in interface io.lerk.soultraps.mobs.Enemy
-
This method is called in combat and determines the damage the player gets.
- Axe - Class in io.lerk.soultraps.items
-
Axe.
- Axe() - Constructor for class io.lerk.soultraps.items.Axe
-
Constructor.
- get() - Static method in class io.lerk.soultraps.sys.dialog.DialogManager
-
Singleton getter.
- getDamage() - Method in class io.lerk.soultraps.items.Item
-
Getter for item damage.
- getDescription() - Method in class io.lerk.soultraps.items.Item
-
Getter for item description.
- getDialog() - Method in class io.lerk.soultraps.mobs.DialogMob
-
Method to get the mobs dialog.
- getDialog() - Method in class io.lerk.soultraps.sys.dialog.Message
-
Getter for the dialog this message belongs to.
- getDialogDoneAction() - Method in class io.lerk.soultraps.mobs.DialogMob
-
Method to get the
Handler
that is run after the dialog is done.
- getDialogDoneAction() - Method in class io.lerk.soultraps.mobs.friendly.Lumberjack
-
Method to get the dialog done action handler.
- getDialogDoneAction() - Method in class io.lerk.soultraps.mobs.Player
-
Dummy method, the player has no dialog.
- getDialogDoneAction() - Method in class io.lerk.soultraps.mobs.stat1c.Floppy
-
Method to get the
Handler
that is run after the dialog is done.
- getDialogDoneAction() - Method in class io.lerk.soultraps.mobs.stat1c.Portal
-
Method to get the
Handler
that is run after the dialog is done.
- getDialogMessages() - Method in class io.lerk.soultraps.mobs.DialogMob
-
- getDialogMessages() - Method in class io.lerk.soultraps.mobs.friendly.Lumberjack
-
Method to get the lumberjacks dialog.
- getDialogMessages() - Method in class io.lerk.soultraps.mobs.Player
-
Dummy method, the player has no dialog.
- getDialogMessages() - Method in class io.lerk.soultraps.mobs.stat1c.Floppy
-
- getDialogMessages() - Method in class io.lerk.soultraps.mobs.stat1c.Portal
-
- getDoneAction() - Method in class io.lerk.soultraps.sys.dialog.Dialog
-
Getter for the dialog's done action.
- getEffects() - Method in class io.lerk.soultraps.items.Item
-
Getter for item effects.
- getElapsedTime() - Method in class io.lerk.soultraps.sys.StopWatch
-
Gets currently elapsed time in nanoseconds.
- getElapsedTimeMillis() - Method in class io.lerk.soultraps.sys.StopWatch
-
Gets currently elapsed time in milliseconds.
- getElapsedTimeSecs() - Method in class io.lerk.soultraps.sys.StopWatch
-
Gets currently elapsed time in seconds.
- getFloppyCoordinates() - Method in class io.lerk.soultraps.levels.Level
-
Getter for floppy coordinates.
- getFloppyCoordinates() - Method in class io.lerk.soultraps.sys.savegame.LevelDTO
-
- getFont(Fonts.Types) - Static method in class io.lerk.soultraps.sys.Fonts
-
- getFont(Fonts.Types, float) - Static method in class io.lerk.soultraps.sys.Fonts
-
- getHealth() - Method in class io.lerk.soultraps.mobs.BaseMob
-
Getter for health.
- getItems() - Method in class io.lerk.soultraps.mobs.Player
-
- getItems() - Method in class io.lerk.soultraps.sys.savegame.PlayerDTO
-
- getLevel() - Method in class io.lerk.soultraps.sys.Savegame
-
- getLevelTiles() - Method in class io.lerk.soultraps.levels.Level
-
Getter for levelTiles.
- getLevelTiles() - Method in class io.lerk.soultraps.sys.savegame.LevelDTO
-
- getLevelType() - Method in class io.lerk.soultraps.sys.savegame.LevelDTO
-
- getMessages() - Method in class io.lerk.soultraps.sys.dialog.Dialog
-
Getter for the dialog's messages.
- getMob() - Method in class io.lerk.soultraps.sys.dialog.Dialog
-
Getter for the dialogs mob.
- getName() - Method in class io.lerk.soultraps.items.Item
-
Getter for item name.
- getName() - Method in enum io.lerk.soultraps.sys.Fonts.Types
-
Getter for font name.
- getName() - Method in enum io.lerk.soultraps.tiles.DesertTiles
-
Getter for tile name.
- getName() - Method in enum io.lerk.soultraps.tiles.GrasslandTiles
-
Getter for tile name.
- getName() - Method in enum io.lerk.soultraps.tiles.MiscTiles
-
Getter for tile name.
- getName() - Method in interface io.lerk.soultraps.tiles.Tile
-
Get the tile name.
- getPortalCoordinates() - Method in class io.lerk.soultraps.levels.Level
-
Getter for portal coordinates.
- getPortalCoordinates() - Method in class io.lerk.soultraps.sys.savegame.LevelDTO
-
- getPosX() - Method in class io.lerk.soultraps.sys.savegame.PlayerDTO
-
- getPosY() - Method in class io.lerk.soultraps.sys.savegame.PlayerDTO
-
- getRandomTile() - Method in class io.lerk.soultraps.levels.Level
-
Generates a random tile name.
- getRandomTile() - Method in class io.lerk.soultraps.levels.types.DesertLevel
-
Generates a random tile name.
- getRandomTile() - Method in class io.lerk.soultraps.levels.types.GrasslandLevel
-
Generates a random tile name.
- getRotation() - Method in enum io.lerk.soultraps.mobs.BaseMob.Direction
-
Getter for image rotation.
- getSavedXPos() - Method in class io.lerk.soultraps.mobs.Player
-
Getter for last saved X position.
- getSavedYPos() - Method in class io.lerk.soultraps.mobs.Player
-
Getter for last saved Y position.
- getSelf() - Static method in class io.lerk.soultraps.mobs.Player
-
Singleton getter for player.
- getText() - Method in class io.lerk.soultraps.components.Button
-
Getter for button text.
- getTileType() - Method in class io.lerk.soultraps.tiles.TileActor
-
Getter for tile type.
- getType() - Method in class io.lerk.soultraps.levels.Level
-
Getter for level type.
- getType() - Method in class io.lerk.soultraps.levels.menu.Launcher
-
Getter for level type.
- getType() - Method in class io.lerk.soultraps.levels.menu.Options
-
Getter for level type.
- getType() - Method in class io.lerk.soultraps.levels.types.DesertLevel
-
Getter for level type.
- getType() - Method in class io.lerk.soultraps.levels.types.GrasslandLevel
-
Getter for level type.
- getValue() - Method in class io.lerk.soultraps.items.Item
-
Getter for item value.
- getWeight() - Method in class io.lerk.soultraps.items.Item
-
Getter for item weight.
- GrasslandLevel - Class in io.lerk.soultraps.levels.types
-
Grassland level.
- GrasslandLevel(String[][], Pair<Integer, Integer>, Pair<Integer, Integer>) - Constructor for class io.lerk.soultraps.levels.types.GrasslandLevel
-
.
- GrasslandLevel() - Constructor for class io.lerk.soultraps.levels.types.GrasslandLevel
-
.
- GrasslandTiles - Enum in io.lerk.soultraps.tiles
-
Enum that contains all possible grassland tiles.
- greenfoot - package greenfoot
-
- Savegame - Class in io.lerk.soultraps.sys
-
Savegame class.
- Savegame(Level, Player) - Constructor for class io.lerk.soultraps.sys.Savegame
-
Constructor.
- setDamage(int) - Method in class io.lerk.soultraps.items.Item
-
Setter for item damage.
- setDescription(String) - Method in class io.lerk.soultraps.items.Item
-
Setter for description.
- setDoneAction(Handler<Void>) - Method in class io.lerk.soultraps.sys.dialog.Dialog
-
Setter for the dialog's done action.
- setEffects(List<Effect>) - Method in class io.lerk.soultraps.items.Item
-
Setter for item effects.
- setFloppyCoordinates(Pair<Integer, Integer>) - Method in class io.lerk.soultraps.sys.savegame.LevelDTO
-
- setHandler(Handler<Void>) - Method in class io.lerk.soultraps.components.Button
-
Setter for the button click handler.
- setHealth(Integer) - Method in class io.lerk.soultraps.mobs.BaseMob
-
Setter for health.
- setItems(ArrayList<String>) - Method in class io.lerk.soultraps.sys.savegame.PlayerDTO
-
- setLevelTiles(String[][]) - Method in class io.lerk.soultraps.sys.savegame.LevelDTO
-
- setLevelType(LevelType) - Method in class io.lerk.soultraps.sys.savegame.LevelDTO
-
- setMessages(ArrayList<Message>) - Method in class io.lerk.soultraps.sys.dialog.Dialog
-
Setter for the dialog's messages.
- setMob(DialogMob) - Method in class io.lerk.soultraps.sys.dialog.Dialog
-
Setter for the dialog's mob.
- setName(String) - Method in class io.lerk.soultraps.items.Item
-
Setter for item name.
- setPortalCoordinates(Pair<Integer, Integer>) - Method in class io.lerk.soultraps.sys.savegame.LevelDTO
-
- setPosX(int) - Method in class io.lerk.soultraps.sys.savegame.PlayerDTO
-
- setPosY(int) - Method in class io.lerk.soultraps.sys.savegame.PlayerDTO
-
- setTalking(boolean) - Method in class io.lerk.soultraps.mobs.DialogMob
-
- setValue(int) - Method in class io.lerk.soultraps.items.Item
-
Setter for item value.
- setWeight(int) - Method in class io.lerk.soultraps.items.Item
-
Setter for item weight.
- shouldStartConversation() - Method in class io.lerk.soultraps.mobs.DialogMob
-
Method to determine if the mob should start a conversation.
- shouldStartConversation() - Method in class io.lerk.soultraps.mobs.friendly.Lumberjack
-
Method to determine if the mob should start a conversation.
- shouldStartConversation() - Method in class io.lerk.soultraps.mobs.Player
-
Dummy method, the player has no dialog.
- shouldStartConversation() - Method in class io.lerk.soultraps.mobs.stat1c.Floppy
-
Method to determine if the mob should start a conversation.
- shouldStartConversation() - Method in class io.lerk.soultraps.mobs.stat1c.Portal
-
Method to determine if the mob should start a conversation.
- Soultraps - Class in io.lerk.soultraps.sys
-
Main Soultraps application.
- Soultraps() - Constructor for class io.lerk.soultraps.sys.Soultraps
-
- SoultrapsFont - Class in greenfoot
-
This class is used to make custom fonts available in Greenfoot.
- SoultrapsFont(Font) - Constructor for class greenfoot.SoultrapsFont
-
Public constructor that accepts
Font
.
- start() - Method in class io.lerk.soultraps.sys.StopWatch
-
Starts the stopwatch.
- startAttack(Enemy) - Method in class io.lerk.soultraps.mobs.Player
-
Starts a fight with a given enemy.
- startDialog(Dialog) - Static method in class io.lerk.soultraps.sys.dialog.DialogManager
-
Displays a message to the user.
- stop(String) - Method in class io.lerk.soultraps.sys.StopWatch
-
Stops the stopwatch and prints out the stats.
- StopWatch - Class in io.lerk.soultraps.sys
-
Stop watch utility class.
- StopWatch(StopWatch.LogLevel) - Constructor for class io.lerk.soultraps.sys.StopWatch
-
Constructor.
- StopWatch.LogLevel - Enum in io.lerk.soultraps.sys
-
Log levels.
- valueOf(String) - Static method in enum io.lerk.soultraps.levels.types.LevelType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum io.lerk.soultraps.mobs.BaseMob.Direction
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum io.lerk.soultraps.sys.Fonts.Types
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum io.lerk.soultraps.sys.StopWatch.LogLevel
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum io.lerk.soultraps.tiles.DesertTiles
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum io.lerk.soultraps.tiles.GrasslandTiles
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum io.lerk.soultraps.tiles.MiscTiles
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum io.lerk.soultraps.levels.types.LevelType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum io.lerk.soultraps.mobs.BaseMob.Direction
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum io.lerk.soultraps.sys.Fonts.Types
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum io.lerk.soultraps.sys.StopWatch.LogLevel
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum io.lerk.soultraps.tiles.DesertTiles
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum io.lerk.soultraps.tiles.GrasslandTiles
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum io.lerk.soultraps.tiles.MiscTiles
-
Returns an array containing the constants of this enum type, in
the order they are declared.