model.entities.SizeChangingEntity
Trait for entities whose dimensions can be modified at runtime.
Provides methods to dynamically change an entity's width and height, useful for entities that need to resize during simulation or for configuration purposes.
Attributes
Graph
Reset zoom Hide graph Show graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Members list
Creates a copy of this entity with a new height.
Creates a copy of this entity with a new height.
Value parameters
newHeight
the new height value
Attributes
Returns
a new instance with the updated height
Creates a copy of this entity with new dimensions.
Creates a copy of this entity with new dimensions.
Value parameters
newHeight
the new height value
newWidth
the new width value
Attributes
Returns
a new instance with the updated dimensions
Creates a copy of this entity with a new width.
Creates a copy of this entity with a new width.
Value parameters
newWidth
the new width value
Attributes
Returns
a new instance with the updated width
Attributes
Inherited from:
Sized
Attributes
Inherited from:
Sized