Class GWState
java.lang.Object
eu.iv4xr.framework.extensions.ltl.gameworldmodel.GWState
- All Implemented Interfaces:
IExplorableState
,IState
Representing the state of the game-world; or more precisely a state in
GameWorldModel
. A state consists of game-objects that populate the
game-world, the agent current and previous positions.- Author:
- Samira, Wish.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addObjects(GWObject... objects)
clone()
boolean
int
hashCode()
void
markAsDestroyed(String id)
void
Produce a string representation of the state for the purpose of printing it e.g.
-
Field Details
-
objects
The objects in the game. -
currentAgentLocation
Current agent location, which is an id of an object, representing that the physical location of the agent is in the near vicinity of the object. (this also means that we cannot represent a location that is half-way towards the object)
-
-
Constructor Details
-
GWState
public GWState()
-
-
Method Details
-
addObjects
-
setAsCurrentLocation
-
markAsDestroyed
-
showState
Description copied from interface:IState
Produce a string representation of the state for the purpose of printing it e.g. when needed to print a witnessing execution trace that contains the state. It is not required that the string representation fully reflects the state. -
clone
- Specified by:
clone
in interfaceIExplorableState
- Overrides:
clone
in classObject
-
hashCode
public int hashCode() -
equals
-