HasPos

o1.world.objects.HasPos
trait HasPos

A supertype for objects that have a location in two-dimensional space.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def pos: Pos

the object’s location

the object’s location

Attributes

Concrete methods

Determines the distance (“as the crow flies”) between this object’s pos and that of the given object.

Determines the distance (“as the crow flies”) between this object’s pos and that of the given object.

Attributes