Bardo.ScapeManager.ScapeManager (Bardo v0.1.0)

View Source

The ScapeManager is responsible for starting and stopping scapes.

Scapes represent environments where agents can interact and operate.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the ScapeManager GenServer with the given parameters and options.

Starts a new scape with the given dimensions and module name.

Stops a scape with the given module name.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link()

@spec start_link() :: {:error, String.t()} | {:ok, pid()}

Starts the ScapeManager GenServer with the given parameters and options.

start_link(_)

start_scape(x, y, width, height, mod_name)

@spec start_scape(float(), float(), float(), float(), atom()) :: :ok

Starts a new scape with the given dimensions and module name.

stop_scape(mod_name)

@spec stop_scape(atom()) :: :ok

Stops a scape with the given module name.