Record Class EntitiesAtLocation
java.lang.Object
java.lang.Record
idlab.colonyops.model.EntitiesAtLocation
- Record Components:
location- the tile's coordinatesentities- the entities currently occupying that tile (may be empty)
The entities present at a single tile within a squad member's vision range, as reported in
ActionRequest.locationsInView().-
Constructor Summary
ConstructorsConstructorDescriptionEntitiesAtLocation(Location location, List<Entity> entities) Creates an instance of aEntitiesAtLocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionentities()Returns the value of theentitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EntitiesAtLocation
-
-
Method Details
-
toString
-
hashCode
-
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). -
location
-
entities
-