Record Class GoalComposite
java.lang.Object
java.lang.Record
com.zenith.feature.pathfinder.goals.GoalComposite
- Record Components:
goals- An array of goals that any one of must be satisfied
- All Implemented Interfaces:
Goal
-
Constructor Summary
ConstructorsConstructorDescriptionGoalComposite(Goal... goals) Creates an instance of aGoalCompositerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.Goal[]goals()Returns the value of thegoalsrecord component.inthashCode()Returns a hash code value for this object.doubledoubleheuristic(int x, int y, int z) booleanisInGoal(int x, int y, int z) toString()Returns a string representation of this record class.
-
Constructor Details
-
GoalComposite
-
-
Method Details
-
isInGoal
-
heuristic
-
heuristic
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
-
toString
-
goals
-