SimulationViewState

io.github.srs.view.state.SimulationViewState
final case class SimulationViewState(environment: Option[Environment], selectedRobotId: Option[String], robots: List[Robot], staticLayer: Option[BufferedImage], lastCanvasSize: (Int, Int, Int, Int))

Centralized state management for the simulation view eliminating the need for multiple state variables.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def needsStaticLayerUpdate(newSize: (Int, Int, Int, Int)): Boolean
def selectedRobot: Option[Robot]
def withSelection(id: Option[String]): SimulationViewState
def withStaticLayer(img: BufferedImage, size: (Int, Int, Int, Int)): SimulationViewState

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product