Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- act() - Method in class ActiverseEngine.Actor
-
Performs the actor's action.
- act() - Method in class ActiverseUtils.ParticleSystem
- actionPerformed(ActionEvent) - Method in class ActiverseEngine.World
-
Updates the world and repaints it
- Activerse - Class in ActiverseEngine
-
Provides utility methods to start and stop the Activerse application.
- Activerse() - Constructor for class ActiverseEngine.Activerse
- ActiverseEngine - package ActiverseEngine
- ActiverseImage - Class in ActiverseEngine
-
Represents an image loader for loading images from files.
- ActiverseImage(String) - Constructor for class ActiverseEngine.ActiverseImage
-
Constructs a new ActiverseImage object with the image loaded from the specified file.
- ActiverseMouseInfo - Class in ActiverseEngine
-
Provides utility methods to retrieve information about the mouse pointer location and detect mouse clicks.
- ActiverseSound - Class in ActiverseEngine
-
Represents a sound player for playing audio files.
- ActiverseSound(String) - Constructor for class ActiverseEngine.ActiverseSound
-
Constructs a new ActiverseSound object with the specified audio file.
- ActiverseUtils - package ActiverseUtils
- Actor - Class in ActiverseEngine
-
The base class for all actors in the world.
- Actor() - Constructor for class ActiverseEngine.Actor
- ActorVector - Class in ActiverseUtils
-
The ActorVector class represents a 2D vector in the Activerse game engine.
- ActorVector(double, double) - Constructor for class ActiverseUtils.ActorVector
- ActorVector(Actor) - Constructor for class ActiverseUtils.ActorVector
- ActorVector(Actor, Actor) - Constructor for class ActiverseUtils.ActorVector
- add(ActorVector) - Method in class ActiverseUtils.ActorVector
- addItem(Item) - Method in class ActiverseEngine.Actor
-
Adds an item to the actor's inventory.
- addObject(Actor, int, int) - Method in class ActiverseEngine.World
-
Adds an actor to the world at the specified location
- addSound(ActiverseSound) - Method in class ActiverseEngine.World
-
Adds a sound to the world
- angleBetween(double, double, double, double) - Static method in class ActiverseUtils.MathUtils
-
Calculates angle between two points in radians
- angleBetween(ActorVector) - Method in class ActiverseUtils.ActorVector
- appendToFile(String, String) - Static method in class ActiverseUtils.FileUtils
-
Appends a string content to the end of a file.
- approximately(double, double) - Static method in class ActiverseUtils.MathUtils
-
Checks if a value is approximately equal to another (within 0.0001)
- approximately(double, double, double) - Static method in class ActiverseUtils.MathUtils
-
Checks if a value is approximately equal to another (within epsilon)
B
- blend(Color, Color, double) - Static method in class ActiverseUtils.ColorUtils
-
Blends two colors
- BlockData() - Constructor for class ActiverseUtils.WorldManager.BlockData
C
- calculateAngularMomentum(double, double) - Static method in class ActiverseUtils.Physics
-
Calculates angular momentum: L = I * ω
- calculateAverageVelocity(double, double) - Static method in class ActiverseUtils.Physics
-
Calculates average velocity: v = Δx / Δt
- calculateCentripetalForce(double, double, double) - Static method in class ActiverseUtils.Physics
-
Calculates centripetal force: F = mv² / r
- calculateCoefficientOfRestitution(double, double, double, double) - Static method in class ActiverseUtils.Physics
-
Calculates coefficient of restitution: e = (v2f - v1f) / (v1i - v2i)
- calculateDensity(double, double) - Static method in class ActiverseUtils.Physics
-
Calculates density: ρ = m / V
- calculateDisplacement(double, double, double) - Static method in class ActiverseUtils.Physics
-
Calculates displacement under constant acceleration: s = ut + 0.5at²
- calculateDistance(int, int, int, int) - Method in class ActiverseEngine.World
-
Calculates the distance between two points, based on the Euclidean distance formula.
- calculateDragForce(double, double, double, double) - Static method in class ActiverseUtils.Physics
-
Calculates aerodynamic drag force: Fd = 0.5 * Cd * ρ * A * v²
- calculateElasticPotentialEnergy(double, double) - Static method in class ActiverseUtils.Physics
-
Calculates elastic potential energy: E = 0.5 * k * x²
- calculateEscapeVelocity(double, double, double) - Static method in class ActiverseUtils.Physics
-
Calculates escape velocity: v = √(2GM/r)
- calculateForce(double, double) - Static method in class ActiverseUtils.Physics
-
Calculates force using Newton's Second Law: F = m * a
- calculateFrictionForce(double, double) - Static method in class ActiverseUtils.Physics
-
Calculates friction force: F = μ * N
- calculateGravitationalForce(double, double, double, double) - Static method in class ActiverseUtils.Physics
-
Calculates gravitational force between two objects: F = G * m1 * m2 / r²
- calculateImpulse(double, double) - Static method in class ActiverseUtils.Physics
-
Calculates impulse: J = F * t
- calculateKineticEnergy(double, double) - Static method in class ActiverseUtils.Physics
-
Calculates kinetic energy: KE = 0.5 * m * v²
- calculateMomentum(double, double) - Static method in class ActiverseUtils.Physics
-
Calculates momentum: p = m * v
- calculatePendulumPeriod(double) - Static method in class ActiverseUtils.Physics
-
Calculates period of a simple pendulum: T = 2π√(l/g)
- calculatePotentialEnergy(double, double) - Static method in class ActiverseUtils.Physics
-
Calculates gravitational potential energy: PE = m * g * h
- calculatePower(double, double) - Static method in class ActiverseUtils.Physics
-
Calculates power: P = W / t
- calculatePressure(double, double) - Static method in class ActiverseUtils.Physics
-
Calculates pressure: P = F / A
- calculateRotationalKineticEnergy(double, double) - Static method in class ActiverseUtils.Physics
-
Calculates rotational kinetic energy: KE = 0.5 * I * ω²
- calculateSpeed(double, double) - Static method in class ActiverseUtils.Physics
-
Calculates speed from velocity components: speed = sqrt(dx² + dy²)
- calculateSpringForce(double, double) - Static method in class ActiverseUtils.Physics
-
Calculates spring force using Hooke's Law: F = -k * x
- calculateTorque(double, double, double) - Static method in class ActiverseUtils.Physics
-
Calculates torque: T = r * F * sin(θ)
- calculateVelocity(double, double, double) - Static method in class ActiverseUtils.Physics
-
Calculates final velocity after constant acceleration: v = u + at
- calculateWeight(double) - Static method in class ActiverseUtils.Physics
-
Calculates the weight of an object on Earth: W = m * g
- calculateWork(double, double, double) - Static method in class ActiverseUtils.Physics
-
Calculates mechanical work: W = F * d * cos(θ)
- Camera - Class in ActiverseEngine
-
Camera - Viewport management system for following actors and scrolling worlds Essential for infinite world generation and smooth camera movement
- Camera(int, int) - Constructor for class ActiverseEngine.Camera
-
Creates a camera with specified viewport size
- Camera(int, int, float) - Constructor for class ActiverseEngine.Camera
-
Creates a camera with smoothing
- canStack(Item) - Method in class ActiverseEngine.Item
-
Checks if this item can stack with another item
- circle(int) - Static method in class ActiverseUtils.Shaper
-
Creates a new circle shape with the specified diameter.
- circleFromRadius(int) - Static method in class ActiverseUtils.Shaper
-
Creates a new circle shape with diameter calculated from radius.
- CircleShape(int) - Constructor for class ActiverseUtils.Shaper.CircleShape
-
Creates a circle shape with the specified diameter.
- clamp(double, double, double) - Static method in class ActiverseUtils.MathUtils
-
Clamps a value between a minimum and maximum
- clamp(float, float, float) - Static method in class ActiverseUtils.MathUtils
-
Clamps a float value between a minimum and maximum
- clamp(int, int, int) - Static method in class ActiverseUtils.MathUtils
-
Clamps an integer value between a minimum and maximum
- clear() - Method in class ActiverseEngine.World
-
Clears all actors from the world and cleans up resources.
- clear() - Method in class ActiverseUtils.WorldGeneration
-
Clears the entire tile map by setting all tiles to null.
- clearFile(String) - Static method in class ActiverseUtils.FileUtils
-
Convenience method to clear (empty) a file by overwriting with an empty string.
- CollisionManager - Class in ActiverseEngine
-
Manages collision detection between actors in the world.
- CollisionManager() - Constructor for class ActiverseEngine.CollisionManager
- ColorUtils - Class in ActiverseUtils
-
ColorUtils - Utility functions for color manipulation
- ColorUtils() - Constructor for class ActiverseUtils.ColorUtils
- ConfigPuller - Class in ActiverseEngine
-
ConfigPuller - Utility for loading configuration from Activerse.properties Provides centralized configuration management for ActiverseEngine applications
- ConfigPuller() - Constructor for class ActiverseEngine.ConfigPuller
- copyFile(String, String) - Static method in class ActiverseUtils.FileUtils
-
Copies a file from source path to target path, overwriting if target exists.
- createDirectories(String) - Static method in class ActiverseUtils.FileUtils
-
Creates a directory (including parent directories) if it does not already exist.
- createInstance(Component) - Static method in class ActiverseEngine.ActiverseMouseInfo
-
Creates a new instance of the ActiverseMouseInfo class with the specified component.
D
- darken(Color, double) - Static method in class ActiverseUtils.ColorUtils
-
Darkens a color by a percentage
- defaultFPS() - Static method in class ActiverseEngine.World
-
Sets default FPS value for Activerse (60)
- delayNext(int) - Method in class ActiverseEngine.Actor
-
Delays the execution of the next action by the specified milliseconds.
- deleteFile(String) - Static method in class ActiverseUtils.FileUtils
-
Deletes a file at the given path.
- direction - Variable in class ActiverseEngine.Actor
- disableInventory() - Method in class ActiverseEngine.Actor
-
Disables the actor's inventory.
- dispose() - Method in class ActiverseEngine.ActiverseSound
-
Releases system resources associated with the audio clip.
- distance(double, double, double, double) - Static method in class ActiverseUtils.MathUtils
-
Calculates distance between two points
- dot(ActorVector) - Method in class ActiverseUtils.ActorVector
E
- EARTH_GRAVITY - Static variable in class ActiverseUtils.Physics
-
Standard gravitational acceleration on Earth (m/s^2)
- emit(int, int, int, Color, long) - Method in class ActiverseUtils.ParticleSystem
-
Emits particles from a position
- emitDirectional(int, int, int, Color, long, double, double) - Method in class ActiverseUtils.ParticleSystem
-
Emits particles in a specific direction
- enableInventory() - Method in class ActiverseEngine.Actor
-
Enables inventory for the actor.
- enablePrecisePosition() - Method in class ActiverseEngine.Actor
-
Enables precise float positioning for smooth sub-pixel movement
- ensureWorldsDirectory() - Static method in class ActiverseUtils.WorldManager
-
Creates the Worlds directory if it doesn't exist
- equals(Object) - Method in class ActiverseUtils.ActorVector
- equals(Object) - Method in record class ActiverseUtils.WorldGeneration.Tile
-
Indicates whether some other object is "equal to" this one.
- ErrorLogger - Class in ActiverseUtils
-
ErrorLogger - Centralized ACEHS formatting and logging utility.
- exists(String) - Static method in class ActiverseUtils.FileUtils
-
Checks if a file or directory exists at the given path.
F
- FileUtils - Class in ActiverseUtils
-
FileUtils - A utility class for common file operations such as reading, writing, appending, checking existence, and creating directories.
- FileUtils() - Constructor for class ActiverseUtils.FileUtils
- fillBelowSurface(int[], int, String, String, String) - Method in class ActiverseUtils.WorldGeneration
-
Fills terrain below the surface based on a heightmap using layered materials.
- finalize() - Method in class ActiverseEngine.ActiverseSound
-
Ensures resources are cleaned up when object is garbage collected.
- format(String, String, String, String) - Static method in class ActiverseUtils.ErrorLogger
- format(String, String, String, String, String, String) - Static method in class ActiverseUtils.ErrorLogger
G
- GameLoop - Class in ActiverseEngine
-
Represents a highly parallelized game loop maximizing CPU usage while maintaining stability.
- GameLoop(World) - Constructor for class ActiverseEngine.GameLoop
- generateBiomes(int, String[]) - Method in class ActiverseUtils.WorldGeneration
-
Assigns biomes to each tile based on horizontal position and biome width.
- generateCaves(double, int) - Method in class ActiverseUtils.WorldGeneration
-
Generates cave-like structures using a randomized cellular automata.
- generatePerlinSurface(int, double, double) - Method in class ActiverseUtils.WorldGeneration
-
Generates a 1D heightmap using Perlin noise with default octaves and persistence.
- generatePerlinSurface(int, double, double, int, double) - Method in class ActiverseUtils.WorldGeneration
-
Generates a customizable Perlin-based heightmap with multiple octaves.
- getActors() - Method in class ActiverseEngine.World
-
Returns the list of actors in the world
- getActorsByType(Class) - Method in class ActiverseEngine.World
-
Returns all actors of a specific type
- getActorsInRegion(int, int, int, int) - Method in class ActiverseEngine.World
-
Gets actors within a specific region
- getAngleTo(Actor) - Method in class ActiverseEngine.Actor
-
Gets the angle to another actor in radians
- getBoolean(String, boolean) - Static method in class ActiverseEngine.ConfigPuller
-
Gets a boolean property value
- getBoundingBox() - Method in class ActiverseEngine.Actor
-
Gets the bounding box of the actor.
- getBoundingBox(int, int) - Method in class ActiverseUtils.Shaper.CircleShape
-
Creates a bounding box rectangle for collision detection.
- getBoundingBox(int, int) - Method in class ActiverseUtils.Shaper.RectangleShape
-
Creates a bounding box rectangle for collision detection.
- getColor() - Method in class ActiverseUtils.TextLabel
- getDiameter() - Method in class ActiverseUtils.Shaper.CircleShape
-
Gets the diameter of the circle.
- getDistanceTo(Actor) - Method in class ActiverseEngine.Actor
-
Gets the distance to another actor
- getDouble(String, double) - Static method in class ActiverseEngine.ConfigPuller
-
Gets a double property value
- getElapsedTime() - Method in class ActiverseUtils.Timer
-
Returns how much time has elapsed in milliseconds.
- getFilename() - Method in class ActiverseEngine.ActiverseSound
-
Gets the filename of the audio file.
- getFillColor() - Method in class ActiverseUtils.Shaper.CircleShape
-
Gets the fill color.
- getFillColor() - Method in class ActiverseUtils.Shaper.RectangleShape
-
Gets the fill color.
- getFont() - Method in class ActiverseUtils.TextLabel
- getFPS() - Static method in class ActiverseEngine.World
-
Returns targeting FPS
- getHeight() - Method in class ActiverseEngine.Actor
-
Gets the height of the actor.
- getHeight() - Method in class ActiverseUtils.Shaper.RectangleShape
-
Gets the height of the rectangle.
- getImage() - Method in class ActiverseEngine.ActiverseImage
-
Gets the loaded image.
- getImage() - Method in class ActiverseEngine.Actor
-
Gets the image of the actor.
- getImageDimensions(ActiverseImage, int, int) - Static method in class ActiverseUtils.ImageUtils
- getInt(String, int) - Static method in class ActiverseEngine.ConfigPuller
-
Gets an integer property value
- getInventory() - Method in class ActiverseEngine.Actor
-
Gets the inventory of the actor.
- getInventorySize() - Method in class ActiverseEngine.Actor
-
Gets the maximum size of the actor's inventory.
- getLength() - Method in class ActiverseEngine.ActiverseSound
-
Gets the total length of the audio clip in milliseconds.
- getMaxInventorySize() - Method in class ActiverseEngine.Actor
-
Gets the maximum inventory size
- getMemoryUsagePerSecond() - Method in class ActiverseEngine.MemoryTracker
-
Returns the memory usage per second in a formatted string.
- getMouseLocation() - Static method in class ActiverseEngine.ActiverseMouseInfo
-
Retrieves the current location of the mouse pointer on the screen.
- getMouseLocationOnComponent() - Static method in class ActiverseEngine.ActiverseMouseInfo
-
Gets the mouse location relative to the component, prioritizing offset issues
- getName() - Method in class ActiverseEngine.Item
-
Returns the name of the item
- getNearestActor(int, int, Class, double) - Method in class ActiverseEngine.World
-
Finds the nearest actor of a specific type to a given position
- getOffsetX() - Method in class ActiverseEngine.Camera
- getOffsetY() - Method in class ActiverseEngine.Camera
- getOneIntersectingObject() - Method in class ActiverseEngine.Actor
-
Finds the intesrsectiuon of the actor with another actor then returns it
- getOutlineColor() - Method in class ActiverseUtils.Shaper.CircleShape
-
Gets the outline color.
- getOutlineColor() - Method in class ActiverseUtils.Shaper.RectangleShape
-
Gets the outline color.
- getOutlineWidth() - Method in class ActiverseUtils.Shaper.CircleShape
-
Gets the outline width.
- getOutlineWidth() - Method in class ActiverseUtils.Shaper.RectangleShape
-
Gets the outline width.
- getPath() - Method in class ActiverseEngine.ActiverseImage
-
Gets the path to the image file.
- getPlayerJsonPath(String) - Static method in class ActiverseUtils.WorldManager
-
Gets the path to player.json
- getPosition() - Method in class ActiverseEngine.ActiverseSound
-
Gets the current playback position in milliseconds.
- getPreciseX() - Method in class ActiverseEngine.Actor
-
Gets the precise X position
- getPreciseY() - Method in class ActiverseEngine.Actor
-
Gets the precise Y position
- getPreferredSize() - Method in class ActiverseEngine.World
-
Returns the list of loaded images in the world
- getRandom() - Method in class ActiverseUtils.WorldGeneration
-
Returns the internal random instance (for procedural hooks).
- getRemainingTime() - Method in class ActiverseUtils.Timer
-
Returns the remaining time in milliseconds, or 0 if expired.
- getString(String, String) - Static method in class ActiverseEngine.ConfigPuller
-
Gets a string property value
- getTargetFps() - Method in class ActiverseEngine.GameLoop
-
Returns the target frames per second (FPS) for the game loop.
- getTargetFPS() - Method in class ActiverseEngine.MemoryTracker
-
Returns FPS target
- getText() - Method in class ActiverseUtils.TextLabel
- getTicksDone() - Static method in class ActiverseEngine.World
-
Gets ticks done in the engine
- getTile(int, int) - Method in class ActiverseUtils.WorldGeneration
-
Returns the Tile object at the specified (x, y), or null if out of bounds.
- getTileMap() - Method in class ActiverseUtils.WorldGeneration
-
Returns the internal tile map.
- getType() - Method in class ActiverseEngine.Item
-
For implementation
- getValue() - Method in class ActiverseEngine.Item
-
Returns the value as signed and serialized of type item
- getVelocityX() - Method in class ActiverseEngine.Actor
-
Gets the horizontal velocity of the actor.
- getVelocityY() - Method in class ActiverseEngine.Actor
-
Gets the vertical velocity of the actor.
- getViewHeight() - Method in class ActiverseEngine.Camera
- getViewWidth() - Method in class ActiverseEngine.Camera
- getVolume() - Method in class ActiverseEngine.ActiverseSound
-
Gets the current volume of the audio file.
- getWidth() - Method in class ActiverseEngine.Actor
-
Returns the width of the Actor
- getWidth() - Method in class ActiverseUtils.Shaper.RectangleShape
-
Gets the width of the rectangle.
- getWorld() - Method in class ActiverseEngine.Actor
-
Gets the world that the actor belongs to.
- getWorldJsonPath(String) - Static method in class ActiverseUtils.WorldManager
-
Gets the path to world.json
- getWorldList() - Static method in class ActiverseUtils.WorldManager
-
Gets list of all world names (directories in Worlds/)
- getWorldPath(String) - Static method in class ActiverseUtils.WorldManager
-
Gets the path to a world directory
- getX() - Method in class ActiverseEngine.Actor
-
Gets the x-coordinate of the actor's location.
- getX() - Method in class ActiverseUtils.ActorVector
- getX() - Method in class ActiverseUtils.TextLabel
- getY() - Method in class ActiverseEngine.Actor
-
Gets the y-coordinate of the actor's location.
- getY() - Method in class ActiverseUtils.ActorVector
- getY() - Method in class ActiverseUtils.TextLabel
H
- hashCode() - Method in class ActiverseUtils.ActorVector
- hashCode() - Method in record class ActiverseUtils.WorldGeneration.Tile
-
Returns a hash code value for this object.
- hasInventory() - Method in class ActiverseEngine.Actor
-
Checks if the actor has an inventory.
- health - Variable in class ActiverseUtils.WorldManager.PlayerData
- height - Variable in class ActiverseUtils.WorldGeneration
- hsvToRgb(float, float, float) - Static method in class ActiverseUtils.ColorUtils
-
Creates a color from HSV values
- hunger - Variable in class ActiverseUtils.WorldManager.PlayerData
I
- ImageUtils - Class in ActiverseUtils
-
ImageUtils - Shared helpers for safe image dimension lookups.
- inBounds(int, int) - Method in class ActiverseUtils.WorldGeneration
-
Returns true if (x, y) is within world boundaries.
- intersects(Actor) - Method in class ActiverseEngine.Actor
-
Checks if this actor intersects with another actor.
- intersects(Actor, Actor) - Static method in class ActiverseEngine.CollisionManager
-
Checks if two actors intersect using pixel-perfect collision detection.
- inventory - Variable in class ActiverseUtils.WorldManager.PlayerData
- isDynamicLighting() - Method in class ActiverseEngine.GameLoop
-
Returns whether dynamic lighting is enabled in the game loop.
- isFinished() - Method in class ActiverseUtils.Timer
-
Returns true if the timer has finished (only applies if duration > 0).
- isKeyDown(int) - Static method in class ActiverseEngine.KeyboardInfo
-
Checks if a specific key is currently pressed.
- isKeyDown(String) - Static method in class ActiverseEngine.KeyboardInfo
-
Checks if a specific key is pressed by name (supports special keywords) Special keywords: "shift" for any shift key
- isLeftClick() - Static method in class ActiverseEngine.ActiverseMouseInfo
-
Checks if the left mouse button is clicked.
- isLoaded() - Method in class ActiverseEngine.ActiverseImage
-
Checks if the image has been fully loaded.
- isPaused() - Method in class ActiverseUtils.Timer
-
Returns true if the timer is paused.
- isPlaying() - Method in class ActiverseEngine.ActiverseSound
-
Checks if the audio file is currently playing.
- isRepeating() - Method in class ActiverseUtils.Timer
-
Returns true if the timer is set to repeat.
- isRightClick() - Static method in class ActiverseEngine.ActiverseMouseInfo
-
Checks if the right mouse button is clicked.
- isRunning() - Method in class ActiverseUtils.Timer
-
Returns true if the timer is currently running (not paused or stopped).
- isStatic() - Method in class ActiverseEngine.Actor
-
Returns the state of the actor on whether it is static or not.
- isVisible(int, int) - Method in class ActiverseEngine.Camera
-
Checks if a point is visible in the viewport
- isVisible(int, int, int, int) - Method in class ActiverseEngine.Camera
-
Checks if a rectangular area is visible in the viewport
- Item - Class in ActiverseEngine
-
Represents an item in the Activerse game engine.
- Item(String, String, int) - Constructor for class ActiverseEngine.Item
-
Constructor for items inside an inventory.
- ItemData() - Constructor for class ActiverseUtils.WorldManager.ItemData
K
- KeyboardInfo - Class in ActiverseEngine
-
Provides utility methods to retrieve information about keyboard input.
- KeyboardInfo() - Constructor for class ActiverseEngine.KeyboardInfo
- keyIsDown(char) - Method in class ActiverseEngine.Actor
-
Checks if a specific key is currently pressed.
- keyPressed(KeyEvent) - Method in class ActiverseEngine.KeyboardInfo
-
Called when a key is pressed.
- keyPressed(KeyEvent) - Method in class ActiverseEngine.World
-
Handles key presses
- keyReleased(KeyEvent) - Method in class ActiverseEngine.KeyboardInfo
-
Called when a key is released.
- keyReleased(KeyEvent) - Method in class ActiverseEngine.World
-
Handles key releases
- keyTyped(KeyEvent) - Method in class ActiverseEngine.KeyboardInfo
-
Called when a key is typed.
- keyTyped(KeyEvent) - Method in class ActiverseEngine.World
-
Handles key typing
- knockback(double, double) - Method in class ActiverseEngine.Actor
-
Applies knockback to this actor
L
- lerp(double, double, double) - Static method in class ActiverseUtils.MathUtils
-
Linear interpolation between two values
- lighten(Color, double) - Static method in class ActiverseUtils.ColorUtils
-
Lightens a color by a percentage
- loadFromFile(String) - Method in class ActiverseUtils.WorldGeneration
-
Loads a previously saved tileMap from disk and replaces the current one.
- loadLinesFromFile(String) - Static method in class ActiverseUtils.FileUtils
-
Reads a list of strings from a file, where each line is an entry.
- loadModifiedBlocks(String) - Static method in class ActiverseUtils.WorldManager
-
Loads modified blocks
- loadPlayerData(String) - Static method in class ActiverseUtils.WorldManager
-
Loads player data from player.json
- loadProperties(String) - Static method in class ActiverseUtils.FileUtils
-
Reads a file containing key=value pairs into a java.util.Properties object.
- loadWorldData(String) - Static method in class ActiverseUtils.WorldManager
-
Loads world data from world.json
- loop() - Method in class ActiverseEngine.ActiverseSound
-
Loops the audio continuously.
- loop(int) - Method in class ActiverseEngine.ActiverseSound
-
Loops the audio a specified number of times.
M
- magnitude() - Method in class ActiverseUtils.ActorVector
- map(double, double, double, double, double) - Static method in class ActiverseUtils.MathUtils
-
Maps a value from one range to another
- MathUtils - Class in ActiverseUtils
-
MathUtils - Common mathematical utility functions for game development
- MathUtils() - Constructor for class ActiverseUtils.MathUtils
- MemoryTracker - Class in ActiverseEngine
-
MemoryTracker class is used to track memory usage of the game along with other statistics
- MemoryTracker() - Constructor for class ActiverseEngine.MemoryTracker
-
Constructor for MemoryTracker class
- metadata() - Method in record class ActiverseUtils.WorldGeneration.Tile
-
Returns the value of the
metadatarecord component. - mouseClicked(MouseEvent) - Method in class ActiverseEngine.ActiverseMouseInfo
-
Not in use method (built on in the future)
- mouseEntered(MouseEvent) - Method in class ActiverseEngine.ActiverseMouseInfo
-
To be built in the future
- mouseExited(MouseEvent) - Method in class ActiverseEngine.ActiverseMouseInfo
- mousePressed(MouseEvent) - Method in class ActiverseEngine.ActiverseMouseInfo
-
Detects if a mouse button is pressed.
- mouseReleased(MouseEvent) - Method in class ActiverseEngine.ActiverseMouseInfo
-
Detects if a mouse button is released.
- move(int) - Method in class ActiverseEngine.Actor
-
Moves the actor in its current direction by the specified distance.
- moveFile(String, String) - Static method in class ActiverseUtils.FileUtils
-
Moves (or renames) a file from source path to target path.
N
- name - Variable in class ActiverseUtils.WorldManager.ItemData
- noise(double) - Method in class ActiverseUtils.PerlinNoise
- noise(double, double) - Method in class ActiverseUtils.PerlinNoise
- noise(double, double, double) - Method in class ActiverseUtils.PerlinNoise
- normalize() - Method in class ActiverseUtils.ActorVector
- normalizeAngle(double) - Static method in class ActiverseUtils.MathUtils
-
Normalizes an angle to be within 0 to 2π radians
O
- octaveNoise(double, double, int, double) - Method in class ActiverseUtils.PerlinNoise
- octaveNoise(double, int, double) - Method in class ActiverseUtils.PerlinNoise
P
- paint(Graphics) - Method in class ActiverseEngine.Actor
-
Draws the actor on the given graphics context.
- paint(Graphics) - Method in class ActiverseUtils.ParticleSystem
- paint(Graphics, int, int) - Method in class ActiverseUtils.Shaper.CircleShape
-
Paints the circle on the given graphics context at the specified position.
- paint(Graphics, int, int) - Method in class ActiverseUtils.Shaper.RectangleShape
-
Paints the rectangle on the given graphics context at the specified position.
- paintComponent(Graphics) - Method in class ActiverseEngine.World
-
Paints the world by drawing the background image, actors, and debug info Applies dynamic lighting if enabled
- ParticleSystem - Class in ActiverseUtils
-
ParticleSystem - System for creating and managing visual particle effects
- ParticleSystem() - Constructor for class ActiverseUtils.ParticleSystem
- pause() - Method in class ActiverseEngine.ActiverseSound
-
Pauses the currently playing audio.
- pause() - Method in class ActiverseEngine.World
-
Pauses the world timer
- pause() - Method in class ActiverseUtils.Timer
-
Pauses the timer.
- perlin - Variable in class ActiverseUtils.WorldGeneration
- PerlinNoise - Class in ActiverseUtils
-
PerlinNoise generates smooth gradient-based noise commonly used for procedural textures, terrain, and other effects.
- PerlinNoise(long) - Constructor for class ActiverseUtils.PerlinNoise
- Physics - Class in ActiverseUtils
-
The
Physicsclass provides a comprehensive suite of physics-related calculations, suitable for simulations, games, and educational tools. - Physics() - Constructor for class ActiverseUtils.Physics
- placeStructure(int, int, String[][]) - Method in class ActiverseUtils.WorldGeneration
-
Places a rectangular structure into the world, starting at (x, y).
- play() - Method in class ActiverseEngine.ActiverseSound
-
Plays the loaded audio file.
- PlayerData() - Constructor for class ActiverseUtils.WorldManager.PlayerData
R
- random - Variable in class ActiverseUtils.WorldGeneration
- readAllLines(String) - Static method in class ActiverseUtils.FileUtils
-
Reads all lines from a file into a List of Strings.
- readFileAsString(String) - Static method in class ActiverseUtils.FileUtils
-
Reads the entire content of a file as a single String.
- rectangle(int, int) - Static method in class ActiverseUtils.Shaper
-
Creates a new rectangle shape with the specified dimensions.
- rectangleScaled(int, int, double) - Static method in class ActiverseUtils.Shaper
-
Creates a new rectangle shape with dimensions scaled from an original size.
- RectangleShape(int, int) - Constructor for class ActiverseUtils.Shaper.RectangleShape
-
Creates a rectangle shape with the specified dimensions.
- reload() - Static method in class ActiverseEngine.ConfigPuller
-
Reloads the properties file from disk
- removeItem(Item) - Method in class ActiverseEngine.Actor
-
Removes an item from the actor's inventory.
- removeObject(Actor) - Method in class ActiverseEngine.World
-
Removes an actor from the world
- render(Graphics) - Method in class ActiverseUtils.TextLabel
- render(Graphics) - Method in class ActiverseUtils.UIBar
- report(String, String, String, String) - Static method in class ActiverseUtils.ErrorLogger
- report(String, String, String, String, String, String) - Static method in class ActiverseUtils.ErrorLogger
- reportErr(String, String, String, String) - Static method in class ActiverseUtils.ErrorLogger
- reportException(String, String, String, Exception) - Static method in class ActiverseUtils.ErrorLogger
- reportException(String, String, String, Exception, String, String) - Static method in class ActiverseUtils.ErrorLogger
- reset() - Method in class ActiverseUtils.Timer
-
Resets the timer without stopping it.
- resume() - Method in class ActiverseEngine.ActiverseSound
-
Resumes the audio from where it was paused.
- resume() - Method in class ActiverseEngine.World
-
Resumes the world timer
- resume() - Method in class ActiverseUtils.Timer
- rgbToHsv(Color) - Static method in class ActiverseUtils.ColorUtils
-
Converts RGB to HSV
- run() - Method in class ActiverseEngine.GameLoop
S
- saveLinesToFile(String, List) - Static method in class ActiverseUtils.FileUtils
-
Saves a list of strings to a file, overwriting the file.
- saveModifiedBlocks(String, Map) - Static method in class ActiverseUtils.WorldManager
-
Saves modified blocks (terrain tiles that were placed/destroyed)
- savePlayerData(String, WorldManager.PlayerData) - Static method in class ActiverseUtils.WorldManager
-
Saves player data to player.json
- saveProperties(String, Properties, String) - Static method in class ActiverseUtils.FileUtils
-
Saves a java.util.Properties object to a file.
- saveToFile(String) - Method in class ActiverseUtils.WorldGeneration
-
Serializes the tileMap to a file on disk.
- saveWorldData(String, long, int, int, int) - Static method in class ActiverseUtils.WorldManager
-
Saves world data to world.json
- scale(double) - Method in class ActiverseUtils.ActorVector
- screenToWorld(int, int) - Method in class ActiverseEngine.Camera
-
Converts screen coordinates to world coordinates
- seed - Variable in class ActiverseUtils.WorldManager.WorldData
- seek(long) - Method in class ActiverseEngine.ActiverseSound
-
Seeks to a specific time position in the audio.
- setBackgroundImage(String) - Method in class ActiverseEngine.World
-
Sets background image of world subclasses
- setColor(Color) - Method in class ActiverseUtils.TextLabel
- setColors(Color, Color, Color) - Method in class ActiverseUtils.UIBar
- setComponentReference(Component) - Static method in class ActiverseEngine.ActiverseMouseInfo
-
Sets the component reference for accurate mouse positioning
- setDuration(long) - Method in class ActiverseUtils.Timer
-
Set a new duration for the timer (in milliseconds).
- setFont(Font) - Method in class ActiverseUtils.TextLabel
- setFPS(int) - Static method in class ActiverseEngine.World
- setHeight(int) - Method in class ActiverseEngine.Actor
-
Sets the height of the actor.
- setImage(ActiverseImage) - Method in class ActiverseEngine.Actor
-
Sets the image of the actor.
- setInventorySize(int) - Method in class ActiverseEngine.Actor
-
Sets the inventory size
- setLabel(String, boolean) - Method in class ActiverseUtils.UIBar
- setLocation(int, int) - Method in class ActiverseEngine.Actor
-
Sets the location of the actor.
- setPosition(int, int) - Method in class ActiverseUtils.UIBar
- setPreciseLocation(double, double) - Method in class ActiverseEngine.Actor
-
Sets the precise location using floats
- setRepeat(boolean) - Method in class ActiverseUtils.Timer
-
Set whether the timer should repeat.
- setSize(int, int) - Method in class ActiverseUtils.UIBar
- setSmoothness(float) - Method in class ActiverseEngine.Camera
- setStatic(boolean) - Method in class ActiverseEngine.Actor
-
Sets the state of the actor to static or not.
- setTarget(Actor) - Method in class ActiverseEngine.Camera
-
Sets the target actor for the camera to follow
- setText(String) - Method in class ActiverseUtils.TextLabel
- setTile(int, int, String) - Method in class ActiverseUtils.WorldGeneration
-
Sets the tile at (x, y) with a type and no metadata.
- setTile(int, int, String, Map) - Method in class ActiverseUtils.WorldGeneration
-
Sets the tile at (x, y) with a specified type and metadata map.
- setValue(double, double) - Method in class ActiverseUtils.UIBar
- setValue(int) - Method in class ActiverseEngine.Item
-
Sets the value of the item (for stacking, quantity changes, etc.)
- setVelocityX(double) - Method in class ActiverseEngine.Actor
-
Sets the horizontal velocity of the actor.
- setVelocityY(double) - Method in class ActiverseEngine.Actor
-
Sets the vertical velocity of the actor.
- setVolume(float) - Method in class ActiverseEngine.ActiverseSound
-
Sets the volume of the audio file.
- setWidth(int) - Method in class ActiverseEngine.Actor
-
Sets the width of the actor.
- setWorld(World) - Static method in class ActiverseEngine.Activerse
-
Sets the world to the inputted world.
- setWorld(World) - Method in class ActiverseEngine.Actor
-
Sets the world that the actor belongs to.
- setWorldBounds(int, int) - Method in class ActiverseEngine.Camera
-
Sets the world bounds for camera clamping
- setX(int) - Method in class ActiverseEngine.Actor
-
Sets the x-coordinate of the actor's location.
- setX(int) - Method in class ActiverseUtils.TextLabel
- setY(int) - Method in class ActiverseEngine.Actor
-
Sets the y-coordinate of the actor's location.
- setY(int) - Method in class ActiverseUtils.TextLabel
- Shaper - Class in ActiverseUtils
-
Utility class for creating and managing shapes for actors.
- Shaper() - Constructor for class ActiverseUtils.Shaper
- Shaper.CircleShape - Class in ActiverseUtils
-
Represents a circle shape configuration.
- Shaper.RectangleShape - Class in ActiverseUtils
-
Represents a rectangle shape configuration.
- showText(int, int, String) - Method in class ActiverseEngine.World
-
Shows text on the world at the specified location
- snapTo(double, double) - Method in class ActiverseEngine.Camera
-
Instantly moves camera to position
- solid - Variable in class ActiverseUtils.WorldManager.BlockData
- square(int) - Static method in class ActiverseUtils.Shaper
-
Creates a new square shape with the specified side length.
- stack(Item) - Method in class ActiverseEngine.Item
-
Stacks another item with this one by adding quantities
- stamina - Variable in class ActiverseUtils.WorldManager.PlayerData
- start() - Method in class ActiverseEngine.GameLoop
-
Starts the game loop on separate threads for update and render.
- start() - Method in class ActiverseEngine.World
-
Starts the world timer
- start() - Method in class ActiverseUtils.Timer
-
Starts or restarts the timer.
- start(World) - Static method in class ActiverseEngine.Activerse
-
Starts the Activerse application with the specified world.
- stop() - Method in class ActiverseEngine.ActiverseSound
-
Stops the currently playing audio file.
- stop() - Method in class ActiverseEngine.GameLoop
-
Stops the game loop and waits for threads to finish.
- stop() - Method in class ActiverseEngine.World
-
Stops the world timer and cleans up resources
- stop() - Method in class ActiverseUtils.Timer
-
Stops the timer completely.
- stop(World) - Static method in class ActiverseEngine.Activerse
-
Stops the Activerse application by stopping the specified world.
- subtract(ActorVector) - Method in class ActiverseUtils.ActorVector
T
- TextLabel - Class in ActiverseUtils
-
TextLabel - A text display component for World UI Allows drawing text without using Graphics2D directly in game code
- TextLabel(String, int, int) - Constructor for class ActiverseUtils.TextLabel
- TextLabel(String, int, int, Color) - Constructor for class ActiverseUtils.TextLabel
- TextLabel(String, int, int, Color, Font) - Constructor for class ActiverseUtils.TextLabel
- Tile(String, Map) - Constructor for record class ActiverseUtils.WorldGeneration.Tile
-
Creates an instance of a
Tilerecord class. - tileMap - Variable in class ActiverseUtils.WorldGeneration
- tileSize - Variable in class ActiverseUtils.WorldManager.WorldData
- Timer - Class in ActiverseUtils
-
Advanced Timer class for game loop timing, delays, and repeated events.
- Timer() - Constructor for class ActiverseUtils.Timer
-
Constructs a Timer with no duration (manual control).
- Timer(long, boolean) - Constructor for class ActiverseUtils.Timer
-
Constructs a Timer with optional duration and repeat flag.
- toAcceleration(double) - Method in class ActiverseUtils.ActorVector
- toDegrees(double) - Static method in class ActiverseUtils.MathUtils
-
Converts radians to degrees
- toKineticEnergy(double) - Method in class ActiverseUtils.ActorVector
- toRadians(double) - Static method in class ActiverseUtils.MathUtils
-
Converts degrees to radians
- toString() - Method in class ActiverseEngine.Item
- toString() - Method in class ActiverseUtils.ActorVector
- toString() - Method in record class ActiverseUtils.WorldGeneration.Tile
-
Returns a string representation of this record class.
- turn(double) - Method in class ActiverseEngine.Actor
-
Turns the actor by the specified angle.
- type - Variable in class ActiverseUtils.WorldManager.BlockData
- type - Variable in class ActiverseUtils.WorldManager.ItemData
- type() - Method in record class ActiverseUtils.WorldGeneration.Tile
-
Returns the value of the
typerecord component.
U
- UIBar - Class in ActiverseUtils
-
UIBar - A progress bar component for World UI (health, stamina, etc.) Allows drawing bars without using Graphics2D directly in game code
- UIBar(int, int, int, int, Color) - Constructor for class ActiverseUtils.UIBar
- UIBar(int, int, int, int, Color, Color, Color) - Constructor for class ActiverseUtils.UIBar
- update() - Method in class ActiverseEngine.Camera
-
Updates the camera position (call each frame)
- update() - Method in class ActiverseEngine.MemoryTracker
-
Updates the memory usage statistics and writes them to a file if logging is enabled.
- update() - Method in class ActiverseEngine.World
-
Updates the world by calling the act method of each actor at a tick interval Updates memory tracker
- use() - Method in class ActiverseEngine.Item
-
Action that the item does to something
- useAStar(Actor, int) - Method in class ActiverseEngine.Actor
-
Gets the direction of the actor.
V
- value - Variable in class ActiverseUtils.WorldManager.ItemData
W
- width - Variable in class ActiverseUtils.WorldGeneration
- withAlpha(Color, int) - Static method in class ActiverseUtils.ColorUtils
-
Sets the alpha (transparency) of a color
- withFillColor(Color) - Method in class ActiverseUtils.Shaper.CircleShape
-
Sets the fill color of the circle.
- withFillColor(Color) - Method in class ActiverseUtils.Shaper.RectangleShape
-
Sets the fill color of the rectangle.
- withOutlineColor(Color) - Method in class ActiverseUtils.Shaper.CircleShape
-
Sets the outline color of the circle.
- withOutlineColor(Color) - Method in class ActiverseUtils.Shaper.RectangleShape
-
Sets the outline color of the rectangle.
- withOutlineWidth(int) - Method in class ActiverseUtils.Shaper.CircleShape
-
Sets the outline width of the circle.
- withOutlineWidth(int) - Method in class ActiverseUtils.Shaper.RectangleShape
-
Sets the outline width of the rectangle.
- World - Class in ActiverseEngine
-
Represents the world where actors interact.
- World(int, int, int) - Constructor for class ActiverseEngine.World
-
Constructor for the World class.
- WorldData() - Constructor for class ActiverseUtils.WorldManager.WorldData
- WorldGeneration - Class in ActiverseUtils
-
WorldGeneration provides advanced utilities for procedural world generation.
- WorldGeneration(int, int) - Constructor for class ActiverseUtils.WorldGeneration
-
Constructs a world with the given dimensions using current time as seed.
- WorldGeneration(int, int, long) - Constructor for class ActiverseUtils.WorldGeneration
-
Constructs a world with given dimensions and a specified random seed.
- WorldGeneration.Tile - Record Class in ActiverseUtils
-
Tile is a serializable record that stores the type of tile and any custom metadata.
- worldHeight - Variable in class ActiverseUtils.WorldManager.WorldData
- WorldManager - Class in ActiverseUtils
-
WorldManager - Handles saving and loading world data Manages world.json and player.json files in Worlds/[WorldName]/ directories This is a significantly harder class to implement than the others, so don't mess with it unless you know what you're doing
- WorldManager() - Constructor for class ActiverseUtils.WorldManager
- WorldManager.BlockData - Class in ActiverseUtils
- WorldManager.ItemData - Class in ActiverseUtils
- WorldManager.PlayerData - Class in ActiverseUtils
- WorldManager.WorldData - Class in ActiverseUtils
- worldToScreen(int, int) - Method in class ActiverseEngine.Camera
-
Converts world coordinates to screen coordinates
- worldWidth - Variable in class ActiverseUtils.WorldManager.WorldData
- writeFile(String, String) - Static method in class ActiverseUtils.FileUtils
-
Writes a string content to a file, overwriting if it exists.
X
- x - Variable in class ActiverseUtils.WorldManager.BlockData
- x - Variable in class ActiverseUtils.WorldManager.PlayerData
Y
- y - Variable in class ActiverseUtils.WorldManager.BlockData
- y - Variable in class ActiverseUtils.WorldManager.PlayerData
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form