Uses of Record Class
dev.twilite.game.simulation.model.entity.SimulationEntity
Packages that use SimulationEntity
Package
Description
-
Uses of SimulationEntity in dev.twilite.game.simulation.model.combat
Methods in dev.twilite.game.simulation.model.combat that return SimulationEntityModifier and TypeMethodDescriptionSimulationCombatState.Prediction.predict(SimulationCombatState state, SimulationEntity entity, Rect target, SimulationCollision collision) Returns the entity state after one simulated tick.Methods in dev.twilite.game.simulation.model.combat that return types with arguments of type SimulationEntityModifier and TypeMethodDescriptionSimulationCombatState.entities()Returns the value of theentitiesrecord component.SimulationHit.sources()Returns the value of thesourcesrecord component.SimulationHit.states()Returns the value of thestatesrecord component.Methods in dev.twilite.game.simulation.model.combat with parameters of type SimulationEntityModifier and TypeMethodDescriptionSimulationCombatState.Prediction.predict(SimulationCombatState state, SimulationEntity entity, Rect target, SimulationCollision collision) Returns the entity state after one simulated tick.Method parameters in dev.twilite.game.simulation.model.combat with type arguments of type SimulationEntityModifier and TypeMethodDescriptionstatic SimulationCombatStateSimulationCombatState.start(Rect player, List<SimulationEntity> entities) Creates an initial combat state.Constructor parameters in dev.twilite.game.simulation.model.combat with type arguments of type SimulationEntityModifierConstructorDescriptionSimulationCombatState(Rect player, List<SimulationEntity> entities, SimulationTimeline timeline, int tick) Creates an instance of aSimulationCombatStaterecord class.SimulationHit(int tick, Rect target, List<SimulationEntity> sources, List<SimulationEntity> states) Creates an instance of aSimulationHitrecord class. -
Uses of SimulationEntity in dev.twilite.game.simulation.model.entity
Methods in dev.twilite.game.simulation.model.entity that return SimulationEntityModifier and TypeMethodDescriptionSimulationEntity.attack()Returns a copy with the attack cooldown reset after attacking.SimulationEntity.attackCooldown(int attackCooldown) Returns a copy with a different attack cooldown.SimulationEntity.expiresIn(int expiresIn) Returns a copy that expires after the supplied number of ticks.SimulationEntity.hittingInside()Returns a copy that can hit targets inside its occupied area.SimulationEntity.ignoringEntityCollision()Returns a copy that ignores simulated entity collision.static SimulationEntityCreates a walking melee entity with a normal attack cycle.SimulationEntity.movementBlocked(int movementBlockTicks) Returns a copy that cannot move for the supplied number of ticks.Returns a copy with a different movement speed.Returns a copy at a new occupied area.SimulationEntity.predictToward(Rect target) Predicts this entity moving directly toward the target for one tick.SimulationEntity.tick()Returns a copy after one simulated tick has elapsed.SimulationEntity.walkingToTargetAnyway()Returns a copy that continues pathing toward the target even when already in attack range.Methods in dev.twilite.game.simulation.model.entity with parameters of type SimulationEntityModifier and TypeMethodDescriptionvoidSimulationCollision.clip(SimulationEntity state) Reserves the occupied area for an entity state.voidSimulationCollision.unclip(SimulationEntity state) Removes the occupied area for an entity state.voidSimulationCollision.update(SimulationEntity state) Updates the reserved occupied area for an entity.Method parameters in dev.twilite.game.simulation.model.entity with type arguments of type SimulationEntityModifier and TypeMethodDescriptionstatic SimulationCollisionSimulationCollision.from(Iterable<SimulationEntity> states) Creates a tracker containing the supplied entity states. -
Uses of SimulationEntity in dev.twilite.game.simulation.rules.combat
Methods in dev.twilite.game.simulation.rules.combat that return SimulationEntityModifier and TypeMethodDescriptionEntityCombat.Prediction.predict(I input, SimulationEntity entity, Rect target, int tick, SimulationCollision collision) Returns the predicted entity state.Methods in dev.twilite.game.simulation.rules.combat that return types with arguments of type SimulationEntityModifier and TypeMethodDescriptionFunction<I, ? extends Collection<SimulationEntity>> EntityCombat.Builder.entities()Returns the value of theentitiesrecord component.Methods in dev.twilite.game.simulation.rules.combat with parameters of type SimulationEntityModifier and TypeMethodDescriptionEntityCombat.Prediction.predict(I input, SimulationEntity entity, Rect target, int tick, SimulationCollision collision) Returns the predicted entity state.Method parameters in dev.twilite.game.simulation.rules.combat with type arguments of type SimulationEntityModifier and TypeMethodDescriptionstatic <I> EntityCombat.Builder<I> EntityCombat.from(Function<I, ? extends Collection<SimulationEntity>> entities) Starts a builder for simulated entity combat state.EntityCombat.Typed.from(Function<I, ? extends Collection<SimulationEntity>> entities) Starts a builder for simulated entity combat state.Constructor parameters in dev.twilite.game.simulation.rules.combat with type arguments of type SimulationEntityModifierConstructorDescriptionBuilder(Function<I, ? extends Collection<SimulationEntity>> entities, EntityCombat.Prediction<I> prediction, SimulationEntity.LineOfSight<? super I> lineOfSight) Creates an instance of aBuilderrecord class.