Class ItemInArea
java.lang.Object
group24.escaperoom.entities.properties.conditionals.Conditional
group24.escaperoom.entities.properties.conditionals.ItemInArea
- All Implemented Interfaces:
com.badlogic.gdx.utils.Json.Serializable,ItemPropertyValue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(GameContext ctx) Optional<group24.escaperoom.entities.properties.conditionals.ItemInArea.ItemInRegionUI>Primarily used in theConditionalUIgetName()getType()voidread(com.badlogic.gdx.utils.Json json, com.badlogic.gdx.utils.JsonValue jsonData) voidwrite(com.badlogic.gdx.utils.Json json) Methods inherited from class group24.escaperoom.entities.properties.conditionals.Conditional
childCount, clone, equals, getChildren, getDisplay, poll, requiresPoll, setChildren
-
Constructor Details
-
ItemInArea
public ItemInArea()
-
-
Method Details
-
write
public void write(com.badlogic.gdx.utils.Json json) -
read
public void read(com.badlogic.gdx.utils.Json json, com.badlogic.gdx.utils.JsonValue jsonData) -
evaluate
- Specified by:
evaluatein classConditional- Parameters:
ctx- theGameContextwhich should be used to evaluate thisConditional- Returns:
- whether or not this
Conditionalistrue
-
getType
- Specified by:
getTypein classConditional- Returns:
- the type of this conditional
-
getEditorConfiguration
public Optional<group24.escaperoom.entities.properties.conditionals.ItemInArea.ItemInRegionUI> getEditorConfiguration(LevelEditorScreen screen) Description copied from class:ConditionalPrimarily used in theConditionalUI- Specified by:
getEditorConfigurationin classConditional- Parameters:
screen- theLevelEditorScreenon which this menu will be spawned- Returns:
- Some(CC) should this
Conditionalrequire additional configuration.
-
getName
- Specified by:
getNamein classConditional- Returns:
- the name of this
Conditional
-