Entity

io.github.srs.model.entity.Entity
See theEntity companion trait
object Entity

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Entity.type

Members list

Extensions

Extensions

extension (e: Entity)
def collidesWith(other: Entity): Boolean

Checks if this entity collides with another entity.

Checks if this entity collides with another entity.

Value parameters

other

the other entity to check for collision against this entity.

Attributes

Returns

true if the two entities collide, false otherwise.