Interface EnvironmentView

All Known Subinterfaces:
EnvironmentControl
All Known Implementing Classes:
Environment

public interface EnvironmentView
Provides a read-only view of the game environment.

EnvironmentView exposes the current state of the environment, including the map, entities, and services such as collision and movement handling. It also provides methods to spawn or despawn entities at specific locations.

For full control of the environment (updating state or adding/removing entities), see EnvironmentControl.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    despawn(Entity entity)
    Despawns an entity from the environment.
    Returns the collision service responsible for handling entity collisions.
    Returns a list of entities currently present in the environment.
    Returns the event bus used for broadcasting and listening to game events.
    Returns the tile map representing the environment's layout.
    Returns the movement service responsible for moving entities in the environment.
    void
    spawn(Entity entity, Location location)
    Spawns an entity at the specified location in the environment.