GraphMine

graphmine-core / io.github.sof3.graphmine.entity / Entity

Entity

class Entity

An entity is a mobile object that exists in a world

An entity follows the ICES structure:

Constructors

<init> Entity()
An entity is a mobile object that exists in a world

Properties

controllers val controllers: MutableSet<EntityController>
The list of objects that control the entity’s motion and behaviour. They may gain or lose control on the entity, or co-work with other controllers to control the entity.
externalViewer var externalViewer: ExternalViewer?
The adapter that determines how this entity looks to other viewers, e.g. which model to look like.
internalViewers val internalViewers: MutableSet<InternalViewer>
The list of viewers that can view the world from the entity’s perspective, i.e. using the entity as a camera
state var state: EntityState?
Stores the entity-specific information. Can be directly written to or read from disk.