From 2480e066876285a37fc8161dd129fa44ad6af373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20M=C3=A4ckel?= Date: Mon, 26 Feb 2024 08:32:53 +0100 Subject: [PATCH] Fixed entityId -> entity in docstring. --- .../tools/aqua/stars/core/evaluation/BinaryPredicate.kt | 4 ++-- .../kotlin/tools/aqua/stars/core/evaluation/UnaryPredicate.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stars-core/src/main/kotlin/tools/aqua/stars/core/evaluation/BinaryPredicate.kt b/stars-core/src/main/kotlin/tools/aqua/stars/core/evaluation/BinaryPredicate.kt index 6ad2032a..5efd6a2f 100644 --- a/stars-core/src/main/kotlin/tools/aqua/stars/core/evaluation/BinaryPredicate.kt +++ b/stars-core/src/main/kotlin/tools/aqua/stars/core/evaluation/BinaryPredicate.kt @@ -61,8 +61,8 @@ class BinaryPredicate< * Checks if this predicate holds (i.e. is true) in the given context on current tick. * * @param ctx The context this predicate is evaluated in. - * @param entity1 The ID of the first entity to evaluate this predicate for. default: ego vehicle. - * @param entity2 The ID of the second entity to evaluate this predicate for. + * @param entity1 The first entity to evaluate this predicate for. default: ego vehicle. + * @param entity2 The second entity to evaluate this predicate for. */ fun holds(ctx: PredicateContext, entity1: E1, entity2: E2): Boolean = holds( diff --git a/stars-core/src/main/kotlin/tools/aqua/stars/core/evaluation/UnaryPredicate.kt b/stars-core/src/main/kotlin/tools/aqua/stars/core/evaluation/UnaryPredicate.kt index ea12c7f3..c87dac1b 100644 --- a/stars-core/src/main/kotlin/tools/aqua/stars/core/evaluation/UnaryPredicate.kt +++ b/stars-core/src/main/kotlin/tools/aqua/stars/core/evaluation/UnaryPredicate.kt @@ -55,7 +55,7 @@ class UnaryPredicate< * Check if this predicate holds (i.e. is true) in the given context. * * @param ctx The context this predicate is evaluated in. - * @param entity The entity to evaluate. + * @param entity The entity to evaluate this predicate for. */ fun holds(ctx: PredicateContext, entity: E): Boolean = holds(ctx, entity.tickData.currentTick, entity.id)