Uses of Interface
de.unistuttgart.informatik.fius.icge.simulation.entity.Entity
-
-
Uses of Entity in de.unistuttgart.informatik.fius.icge.simulation
Methods in de.unistuttgart.informatik.fius.icge.simulation with type parameters of type Entity Modifier and Type Method Description <T extends Entity>
List<T>Playfield. getAllEntitiesOfType(Class<? extends T> type, boolean includeSubclasses)
Get a list of all entities matching the given type on this playfield.<T extends Entity>
List<T>Playfield. getEntitiesOfTypeAt(Position pos, Class<? extends T> type, boolean includeSubclasses)
Get a list of all entities matching the given type at the given position on this playfield.<E extends Entity,S extends E>
voidSimulation. runProgram(Program<E> program, S entity)
Run the given program for the given Entity in the background.Methods in de.unistuttgart.informatik.fius.icge.simulation that return types with arguments of type Entity Modifier and Type Method Description List<Entity>
Playfield. getAllEntities()
Get a list of all entities on this playfield.List<Entity>
Playfield. getEntitiesAt(Position pos)
Get a list of all entities at the given position on this playfield.Methods in de.unistuttgart.informatik.fius.icge.simulation with parameters of type Entity Modifier and Type Method Description void
Playfield. addEntity(Position pos, Entity entity)
Add a given entity to this simulation at a given position on this playfield.boolean
Playfield. containsEntity(Entity entity)
Check whether the specified entity is on this playfield.Position
Playfield. getEntityPosition(Entity entity)
Get the position of the specified entity on the playfield.void
Playfield. moveEntity(Entity entity, Position pos)
Move a entity of this simulation to a given position on this playfield.void
Playfield. moveEntity(Entity entity, Position pos, EntityMoveAction action)
Move a entity of this simulation to a given position on this playfield.void
Playfield. removeEntity(Entity entity)
Remove a entity of this simulation from this playfield. -
Uses of Entity in de.unistuttgart.informatik.fius.icge.simulation.actions
Methods in de.unistuttgart.informatik.fius.icge.simulation.actions that return Entity Modifier and Type Method Description Entity
EntityAction. getEntity()
Methods in de.unistuttgart.informatik.fius.icge.simulation.actions with parameters of type Entity Modifier and Type Method Description <T extends EntityAction>
List<T>ActionLog. getActionsOfTypeOfEntity(Entity entity, Class<? extends T> type, boolean includeSubclasses)
Get all actions which were logged of the given type and were caused by the given entity.List<EntityAction>
ActionLog. getAllActionsOfEntity(Entity entity)
Get all actions which were logged and were caused by the given entity.Constructors in de.unistuttgart.informatik.fius.icge.simulation.actions with parameters of type Entity Constructor Description EntityAction(long tickNumber, Entity entity)
Create an entity action.EntityCollectAction(long tickNumber, Entity entity, CollectableEntity collected, Position collectorPos, Position collectedPos)
Create an entity collect action.EntityDespawnAction(long tickNumber, Entity entity, Playfield playfield)
Create an entity despawn actionEntityDropAction(long tickNumber, Entity entity, CollectableEntity dropped, Position dropperPos, Position droppedPos)
Create an entity drop action.EntityMoveAction(long tickNumber, Entity entity, Position from, Position to)
Create an entity move action.EntitySpawnAction(long tickNumber, Entity entity, Playfield playfield, Position position)
Create an entity spawn action.EntityStepAction(long tickNumber, Entity entity, Position from, Position to)
Create an entity step action.EntityTeleportAction(long tickNumber, Entity entity, Position from, Position to)
Create an entity teleport action.EntityTurnAction(long tickNumber, Entity entity, Direction from, Direction to)
Create an entity turn action. -
Uses of Entity in de.unistuttgart.informatik.fius.icge.simulation.entity
Subinterfaces of Entity in de.unistuttgart.informatik.fius.icge.simulation.entity Modifier and Type Interface Description interface
CollectableEntity
An entity, which can be collected byEntityCollector
.interface
SolidEntity
A solid entity, through which a movable entity cannot move.Classes in de.unistuttgart.informatik.fius.icge.simulation.entity that implement Entity Modifier and Type Class Description class
BasicEntity
A basic implementation ofEntity
class
GreedyEntity
A movable entity collector.class
MovableEntity
A movable entityMethods in de.unistuttgart.informatik.fius.icge.simulation.entity that return Entity Modifier and Type Method Description Entity
EntityTypeRegistry. getNewEntity(String typeName)
Get a new Entity instance of a registered entity type.Method parameters in de.unistuttgart.informatik.fius.icge.simulation.entity with type arguments of type Entity Modifier and Type Method Description void
EntityTypeRegistry. registerEntityType(String typeName, String textureHandle, Class<? extends Entity> entityType)
Register a new entity type by name.void
EntityTypeRegistry. registerEntityType(String typeName, String textureHandle, Supplier<? extends Entity> entityFactory)
Register a new entity type by name. -
Uses of Entity in de.unistuttgart.informatik.fius.icge.simulation.inspection
Methods in de.unistuttgart.informatik.fius.icge.simulation.inspection with parameters of type Entity Modifier and Type Method Description List<String>
InspectionManager. getAttributeNamesOfEntity(Entity entity)
Get's all attribute names of the given entity.Class<?>
InspectionManager. getAttributeType(Entity entity, String attributeName)
Get's the type of the attribute with the given name in the given entity.Object
InspectionManager. getAttributeValue(Entity entity, String attributeName)
Get the value of the attribute with the given name from the given entityMethod
InspectionManager. getMethodDetail(Entity entity, String methodName)
Get the detail of the method with the given name of the given name.List<String>
InspectionManager. getMethodNamesOfEntity(Entity entity)
Get's all method names of the given entity.Object
InspectionManager. invokeMethod(Entity entity, String methodName, Object... args)
Invokes the method with the given name on the given entity.boolean
InspectionManager. isAttributeEditable(Entity entity, String attributeName)
Checks whether the attribute with the given name in the given entity is writable.boolean
InspectionManager. setAttributeValue(Entity entity, String attributeName, Object value)
Set the value of the attribute with the given name in the given entity -
Uses of Entity in de.unistuttgart.informatik.fius.icge.simulation.programs
Classes in de.unistuttgart.informatik.fius.icge.simulation.programs with type parameters of type Entity Modifier and Type Interface Description interface
Program<E extends Entity>
The interface for programs that operate on entities. -
Uses of Entity in de.unistuttgart.informatik.fius.icge.simulation.tools
Methods in de.unistuttgart.informatik.fius.icge.simulation.tools with parameters of type Entity Modifier and Type Method Description void
PlayfieldModifier. placeEntityAt(Entity entity, Position position)
Place the given entity at the given position on the playfield.Method parameters in de.unistuttgart.informatik.fius.icge.simulation.tools with type arguments of type Entity Modifier and Type Method Description void
PlayfieldModifier. placeEntityAtEachPosition(Supplier<? extends Entity> entityFactory, Iterable<Position> positions)
Place an entity supplied by the given factory at each of the given positionsvoid
PlayfieldModifier. placeMultipleEntitiesAt(Supplier<? extends Entity> entityFactory, int count, Position position)
Place the given number of entities supplied by the given factory at the given location.
-