Entity

io.github.srs.model.Entity
trait Entity

Represents a generic entity in a two-dimensional space.

An entity is characterized by its position, shape, and orientation.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Obstacle
class Light

Members list

Value members

Abstract methods

The orientation of the entity in 2D space.

The orientation of the entity in 2D space.

Attributes

Returns

an Orientation representing the angle or facing direction of this entity.

The position of the entity in 2D space.

The position of the entity in 2D space.

Attributes

Returns

a Point2D representing the (x, y) coordinates of this entity.

The shape type of the entity.

The shape type of the entity.

Attributes

Returns

the ShapeType that defines the geometric shape of this entity.