Index
All Classes and Interfaces|All Packages|Serialized Form
A
- activeSystemIterator() - Method in class technology.sola.ecs.SolaEcs
- addComponent(Component) - Method in class technology.sola.ecs.Entity
-
Adds a
Component
to this Entity. - addSystem(EcsSystem) - Method in class technology.sola.ecs.SolaEcs
-
Adds an
EcsSystem
to the collection. - addSystems(EcsSystem...) - Method in class technology.sola.ecs.SolaEcs
-
Adds
EcsSystem
s to the collection. - afterDeserialize(World) - Method in interface technology.sola.ecs.Component
-
Called after a
World
has been deserialized viaWorldIo.parse(String)
.
C
- c1() - Method in record class technology.sola.ecs.view.View1Entry
-
Returns the value of the
c1
record component. - c1() - Method in record class technology.sola.ecs.view.View2Entry
-
Returns the value of the
c1
record component. - c1() - Method in record class technology.sola.ecs.view.View3Entry
-
Returns the value of the
c1
record component. - c1() - Method in record class technology.sola.ecs.view.View4Entry
-
Returns the value of the
c1
record component. - c2() - Method in record class technology.sola.ecs.view.View2Entry
-
Returns the value of the
c2
record component. - c2() - Method in record class technology.sola.ecs.view.View3Entry
-
Returns the value of the
c2
record component. - c2() - Method in record class technology.sola.ecs.view.View4Entry
-
Returns the value of the
c2
record component. - c3() - Method in record class technology.sola.ecs.view.View3Entry
-
Returns the value of the
c3
record component. - c3() - Method in record class technology.sola.ecs.view.View4Entry
-
Returns the value of the
c3
record component. - c4() - Method in record class technology.sola.ecs.view.View4Entry
-
Returns the value of the
c4
record component. - cleanupDestroyedEntities() - Method in class technology.sola.ecs.World
-
Removes entities that were queued for destruction.
- Component - Interface in technology.sola.ecs
- componentClasses - Variable in class technology.sola.ecs.cache.ViewImpl
-
The component classes for the view.
- ComponentJsonMapperNotFoundException - Exception in technology.sola.ecs.io.json
-
Exception thrown when a
JsonWorldIo
does not have the requiredJsonMapper
for aComponent
registered to it. - ComponentJsonMapperNotFoundException(String) - Constructor for exception technology.sola.ecs.io.json.ComponentJsonMapperNotFoundException
-
Creates a new instance of this exception.
- components() - Method in record class technology.sola.ecs.view.ViewNEntry
-
Returns the value of the
components
record component. - createEntity(String, String, Component...) - Method in class technology.sola.ecs.World
-
Creates a new
Entity
inside this World with a set unique id. - createEntity(String, Component...) - Method in class technology.sola.ecs.World
-
Creates a new
Entity
inside this World with a random unique id. - createEntity(Component...) - Method in class technology.sola.ecs.World
-
Creates a new
Entity
inside this World with a random unique id. - createEntryFromEntity(Entity) - Method in class technology.sola.ecs.cache.ViewImpl
- createEntryFromEntity(Entity) - Method in class technology.sola.ecs.view.View1
- createEntryFromEntity(Entity) - Method in class technology.sola.ecs.view.View2
- createEntryFromEntity(Entity) - Method in class technology.sola.ecs.view.View3
- createEntryFromEntity(Entity) - Method in class technology.sola.ecs.view.View4
- createEntryFromEntity(Entity) - Method in class technology.sola.ecs.view.ViewN
- createView() - Method in class technology.sola.ecs.World
- createView(Class<? extends Component>...) - Method in class technology.sola.ecs.cache.ViewCache
-
Gets a
ViewN
for the desired component classes from the cache or creates it if it does not exist. - createView(Class<C1>) - Method in class technology.sola.ecs.cache.ViewCache
-
Gets a
View1
for the desired component class from the cache or creates it if it does not exist. - createView(Class<C1>, Class<C2>) - Method in class technology.sola.ecs.cache.ViewCache
-
Gets a
View2
for the desired component classes from the cache or creates it if it does not exist. - createView(Class<C1>, Class<C2>, Class<C3>) - Method in class technology.sola.ecs.cache.ViewCache
-
Gets a
View3
for the desired component classes from the cache or creates it if it does not exist. - createView(Class<C1>, Class<C2>, Class<C3>, Class<C4>) - Method in class technology.sola.ecs.cache.ViewCache
-
Gets a
View4
for the desired component classes from the cache or creates it if it does not exist.
D
- destroy() - Method in class technology.sola.ecs.Entity
-
Queues this Entity for destruction.
- destroyView(Class<? extends Component>[]) - Method in class technology.sola.ecs.cache.ViewCache
-
Destroys a view from the cache so that it no longer will receive any updates.
- dropView(Class<? extends Component>...) - Method in class technology.sola.ecs.World
-
Drops a view with desired
Component
s if it exists.
E
- EcsSystem - Class in technology.sola.ecs
- EcsSystem() - Constructor for class technology.sola.ecs.EcsSystem
- EcsSystemNotFoundException - Exception in technology.sola.ecs.exception
-
Exception thrown when an
EcsSystem
was not found. - EcsSystemNotFoundException(Class<? extends EcsSystem>) - Constructor for exception technology.sola.ecs.exception.EcsSystemNotFoundException
-
Creates a new instance of this exception.
- entity() - Method in record class technology.sola.ecs.view.View1Entry
-
Returns the value of the
entity
record component. - entity() - Method in record class technology.sola.ecs.view.View2Entry
-
Returns the value of the
entity
record component. - entity() - Method in record class technology.sola.ecs.view.View3Entry
-
Returns the value of the
entity
record component. - entity() - Method in record class technology.sola.ecs.view.View4Entry
-
Returns the value of the
entity
record component. - entity() - Method in interface technology.sola.ecs.view.ViewEntry
- entity() - Method in record class technology.sola.ecs.view.ViewNEntry
-
Returns the value of the
entity
record component. - Entity - Class in technology.sola.ecs
- EntityNameCache - Class in technology.sola.ecs.cache
-
The EntityNameCache class handles caching
Entity
by their name for quicker searching by name. - EntityNameCache() - Constructor for class technology.sola.ecs.cache.EntityNameCache
- equals(Object) - Method in record class technology.sola.ecs.view.View1Entry
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.ecs.view.View2Entry
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.ecs.view.View3Entry
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.ecs.view.View4Entry
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.ecs.view.ViewNEntry
-
Indicates whether some other object is "equal to" this one.
F
- findEntitiesWithComponents(Class<? extends Component>...) - Method in class technology.sola.ecs.World
- findEntityByName(String) - Method in class technology.sola.ecs.World
-
Searches for an
Entity
by its name. - findEntityByUniqueId(String) - Method in class technology.sola.ecs.World
-
Searches for an
Entity
by its unique id.
G
- get(String) - Method in class technology.sola.ecs.cache.EntityNameCache
-
Returns the
Entity
with desired name or null if not found. - getComponent(Class<T>) - Method in class technology.sola.ecs.Entity
-
Gets a
Component
instance for the class passed in. - getCurrentComponents() - Method in class technology.sola.ecs.Entity
-
Returns a list of the current
Component
classes that this entity has. - getEnabledEntities() - Method in class technology.sola.ecs.World
- getEntities() - Method in class technology.sola.ecs.World
- getEntityAtIndex(int) - Method in class technology.sola.ecs.World
-
Gets an
Entity
by index or null if one is not present. - getEntityCount() - Method in class technology.sola.ecs.World
-
Gets the current number of
Entity
in this World. - getEntries() - Method in class technology.sola.ecs.cache.ViewImpl
- getEntries() - Method in interface technology.sola.ecs.view.View
- getIndexInWorld() - Method in class technology.sola.ecs.Entity
-
Gets the integer id of this Entity.
- getMaxEntityCount() - Method in class technology.sola.ecs.World
-
Gets the maximum
Entity
count for this world. - getName() - Method in class technology.sola.ecs.Entity
-
Gets the name of this Entity.
- getObjectClass() - Method in class technology.sola.ecs.io.json.WorldJsonMapper
- getOrder() - Method in class technology.sola.ecs.EcsSystem
-
Gets the order of this System.
- getSystem(Class<T>) - Method in class technology.sola.ecs.SolaEcs
-
Returns the
EcsSystem
corresponding to the passed class. - getSystems() - Method in class technology.sola.ecs.SolaEcs
- getUniqueId() - Method in class technology.sola.ecs.Entity
-
Gets the unique id of this entity that persists through serialization and deserialization.
- getWorld() - Method in class technology.sola.ecs.SolaEcs
H
- hasComponent(Class<T>) - Method in class technology.sola.ecs.Entity
- hashCode() - Method in record class technology.sola.ecs.view.View1Entry
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.ecs.view.View2Entry
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.ecs.view.View3Entry
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.ecs.view.View4Entry
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.ecs.view.ViewNEntry
-
Returns a hash code value for this object.
I
- isActive() - Method in class technology.sola.ecs.EcsSystem
-
Returns true if this
EcsSystem
is active. - isDisabled() - Method in class technology.sola.ecs.Entity
-
Returns whether this Entity should be considered disabled or not.
- isWatchingComponent(Class<? extends Component>) - Method in class technology.sola.ecs.cache.ViewImpl
-
Checks if this view responds to an
Entity
adding or removing the component type or if an entity is deleted while having the component type. - isWatchingComponent(Class<? extends Component>) - Method in interface technology.sola.ecs.view.View
-
Checks if this view responds to an
Entity
adding or removing the component type or if an entity is deleted while having the component type.
J
- JsonWorldIo - Class in technology.sola.ecs.io.json
-
A reflection free JSON implementation of
WorldIo
. - JsonWorldIo(List<JsonMapper<? extends Component>>) - Constructor for class technology.sola.ecs.io.json.JsonWorldIo
-
Creates a new JsonWorldIo instance with desired
JsonMapper
s.
O
- of(Class<? extends Component>...) - Method in class technology.sola.ecs.ViewBuilder
- of(Class<C1>) - Method in class technology.sola.ecs.ViewBuilder
- of(Class<C1>, Class<C2>) - Method in class technology.sola.ecs.ViewBuilder
- of(Class<C1>, Class<C2>, Class<C3>) - Method in class technology.sola.ecs.ViewBuilder
- of(Class<C1>, Class<C2>, Class<C3>, Class<C4>) - Method in class technology.sola.ecs.ViewBuilder
P
- parse(String) - Method in class technology.sola.ecs.io.json.JsonWorldIo
- parse(String) - Method in interface technology.sola.ecs.io.WorldIo
-
Deserializes a string into a
World
. - processWorldAfterDeserialize(World) - Static method in interface technology.sola.ecs.io.WorldIo
-
Loops through each
Entity
in aWorld
and callsComponent.afterDeserialize(World)
for eachComponent
of theEntity
.
R
- remove(String) - Method in class technology.sola.ecs.cache.EntityNameCache
-
Removes an
Entity
from the cache by its name. - removeComponent(Class<? extends Component>) - Method in class technology.sola.ecs.Entity
-
Removes a
Component
from this Entity. - removeSystem(EcsSystem) - Method in class technology.sola.ecs.SolaEcs
-
Removed an
EcsSystem
from the collection.
S
- setActive(boolean) - Method in class technology.sola.ecs.EcsSystem
-
Sets the active state of this
EcsSystem
. - setDisabled(boolean) - Method in class technology.sola.ecs.Entity
-
Updates the disabled state of this Entity.
- setName(String) - Method in class technology.sola.ecs.Entity
-
Sets the name of this Entity.
- setWorld(World) - Method in class technology.sola.ecs.SolaEcs
- SolaEcs - Class in technology.sola.ecs
-
SolaEcs is a wrapper for a collection of
EcsSystem
. - SolaEcs() - Constructor for class technology.sola.ecs.SolaEcs
-
Creates an empty
SolaEcs
. - SolaEcs(World, EcsSystem...) - Constructor for class technology.sola.ecs.SolaEcs
- stringify(World) - Method in class technology.sola.ecs.io.json.JsonWorldIo
- stringify(World) - Method in interface technology.sola.ecs.io.WorldIo
-
Serializes a
World
into a string. - systemIterator() - Method in class technology.sola.ecs.SolaEcs
T
- technology.sola.ecs - module technology.sola.ecs
-
Defines the sola-ecs API.
- technology.sola.ecs - package technology.sola.ecs
-
This package provides the core classes for sola-ecs.
- technology.sola.ecs.cache - package technology.sola.ecs.cache
-
This package provides class to cache different kinds of queries against
World
. - technology.sola.ecs.exception - package technology.sola.ecs.exception
-
This package provides various exceptions for errors that may happen during various sola-ecs operations.
- technology.sola.ecs.io - package technology.sola.ecs.io
-
This package provides the API for serializing and deserializing
World
. - technology.sola.ecs.io.json - package technology.sola.ecs.io.json
-
This package provides the JSON implementations for serializing and deserializing
World
. - technology.sola.ecs.view - package technology.sola.ecs.view
-
This package provides implementations of
View
. - toJson(World) - Method in class technology.sola.ecs.io.json.WorldJsonMapper
- toObject(JsonObject) - Method in class technology.sola.ecs.io.json.WorldJsonMapper
- toString() - Method in record class technology.sola.ecs.view.View1Entry
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.ecs.view.View2Entry
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.ecs.view.View3Entry
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.ecs.view.View4Entry
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.ecs.view.ViewNEntry
-
Returns a string representation of this record class.
U
- update(Entity, String) - Method in class technology.sola.ecs.cache.EntityNameCache
-
Updates the cache for an
Entity
using its previous name as reference. - update(World, float) - Method in class technology.sola.ecs.EcsSystem
- updateForAddComponent(Entity, Class<? extends Component>) - Method in class technology.sola.ecs.cache.ViewCache
- updateForDeletedEntity(Entity) - Method in class technology.sola.ecs.cache.ViewCache
- updateForDisabledStateChange(Entity) - Method in class technology.sola.ecs.cache.ViewCache
- updateForRemoveComponent(Entity, Class<? extends Component>) - Method in class technology.sola.ecs.cache.ViewCache
- updateWorld(float) - Method in class technology.sola.ecs.SolaEcs
-
Called when the
World
should be updated.
V
- View<E extends ViewEntry> - Interface in technology.sola.ecs.view
- View1<C1 extends Component> - Class in technology.sola.ecs.view
- View1(Class<C1>) - Constructor for class technology.sola.ecs.view.View1
-
Creates an instance of View1.
- View1Entry<C1 extends Component> - Record Class in technology.sola.ecs.view
- View1Entry(Entity, C1) - Constructor for record class technology.sola.ecs.view.View1Entry
-
Creates an instance of a
View1Entry
record class. - View2<C1 extends Component,
C2 extends Component> - Class in technology.sola.ecs.view - View2(Class<C1>, Class<C2>) - Constructor for class technology.sola.ecs.view.View2
-
Creates an instance of View2.
- View2Entry<C1 extends Component,
C2 extends Component> - Record Class in technology.sola.ecs.view - View2Entry(Entity, C1, C2) - Constructor for record class technology.sola.ecs.view.View2Entry
-
Creates an instance of a
View2Entry
record class. - View3<C1 extends Component,
C2 extends Component, C3 extends Component> - Class in technology.sola.ecs.view - View3(Class<C1>, Class<C2>, Class<C3>) - Constructor for class technology.sola.ecs.view.View3
-
Creates an instance of View3.
- View3Entry<C1 extends Component,
C2 extends Component, C3 extends Component> - Record Class in technology.sola.ecs.view - View3Entry(Entity, C1, C2, C3) - Constructor for record class technology.sola.ecs.view.View3Entry
-
Creates an instance of a
View3Entry
record class. - View4<C1 extends Component,
C2 extends Component, C3 extends Component, C4 extends Component> - Class in technology.sola.ecs.view - View4(Class<C1>, Class<C2>, Class<C3>, Class<C4>) - Constructor for class technology.sola.ecs.view.View4
-
Creates an instance of View4.
- View4Entry<C1 extends Component,
C2 extends Component, C3 extends Component, C4 extends Component> - Record Class in technology.sola.ecs.view - View4Entry(Entity, C1, C2, C3, C4) - Constructor for record class technology.sola.ecs.view.View4Entry
-
Creates an instance of a
View4Entry
record class. - ViewBuilder - Class in technology.sola.ecs
-
The ViewBuilder class exposes methods for creating
View
s. - ViewCache - Class in technology.sola.ecs.cache
- ViewCache(World) - Constructor for class technology.sola.ecs.cache.ViewCache
-
Creates a ViewCache instance for a
World
- ViewEntry - Interface in technology.sola.ecs.view
-
The ViewEntry interface defines the api for an entry in a
View
. - ViewImpl<E extends ViewEntry> - Class in technology.sola.ecs.cache
- ViewImpl(List<Class<? extends Component>>) - Constructor for class technology.sola.ecs.cache.ViewImpl
-
Creates a new view watching desired components.
- ViewN - Class in technology.sola.ecs.view
- ViewN(Class<? extends Component>[]) - Constructor for class technology.sola.ecs.view.ViewN
-
Creates an instance for desired component classes.
- ViewNEntry - Record Class in technology.sola.ecs.view
- ViewNEntry(Entity, List<Component>) - Constructor for record class technology.sola.ecs.view.ViewNEntry
-
Creates an instance of a
ViewNEntry
record class.
W
- World - Class in technology.sola.ecs
- World(int) - Constructor for class technology.sola.ecs.World
-
Creates a new World instance with specified max
Entity
count. - WorldEntityLimitException - Exception in technology.sola.ecs.exception
-
Exception thrown when the max entity limit is reached for a
World
. - WorldEntityLimitException(int, int) - Constructor for exception technology.sola.ecs.exception.WorldEntityLimitException
-
Creates a new instance of this exception.
- WorldIo - Interface in technology.sola.ecs.io
-
Defines the API contract for serializing and deserializing a
World
. - WorldJsonMapper - Class in technology.sola.ecs.io.json
-
JsonMapper
implementation forWorld
. - WorldJsonMapper(List<JsonMapper<? extends Component>>) - Constructor for class technology.sola.ecs.io.json.WorldJsonMapper
-
Creates a new JsonWorldIo instance with desired
JsonMapper
s.
All Classes and Interfaces|All Packages|Serialized Form