Class ConnectorBridge
java.lang.Object
group24.escaperoom.entities.properties.ItemProperty<PhantomProperty.PhantomPropertyValue>
group24.escaperoom.entities.properties.PhantomProperty
group24.escaperoom.entities.properties.Connector
group24.escaperoom.entities.properties.ConnectorBridge
- All Implemented Interfaces:
com.badlogic.gdx.utils.Json.Serializable,Connectable
-
Nested Class Summary
Nested classes/interfaces inherited from class group24.escaperoom.entities.properties.Connector
Connector.ConnectorTypeNested classes/interfaces inherited from class group24.escaperoom.entities.properties.PhantomProperty
PhantomProperty.PhantomPropertyValueNested classes/interfaces inherited from class group24.escaperoom.entities.properties.ItemProperty
ItemProperty.MenuTypeNested classes/interfaces inherited from interface group24.escaperoom.entities.properties.Connectable
Connectable.ConnectableItem, Connectable.Utils -
Field Summary
Fields inherited from class group24.escaperoom.entities.properties.ItemProperty
ownerFields inherited from interface group24.escaperoom.entities.properties.Connectable
defaultConnectionDirections -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptSignalFrom(Connectable source, Types.IntVector2 pos, GameContext ctx, HashSet<Integer> seen) Called when thisConnectablereceives a signal from another.By default, connectable items connect visually to 8 directions.getType()voidpropagate(GameContext ctx, HashSet<Integer> seen) Potentially propagate the the connectors current siganlMethods inherited from class group24.escaperoom.entities.properties.Connector
getConnectorType, getCustomItemConfigurationMenu, getDisplayName, isConnected, read, setActive, updateColor, writeMethods inherited from class group24.escaperoom.entities.properties.PhantomProperty
getAvailableActions, getInputType, getPotentialValues, getValueClassMethods inherited from class group24.escaperoom.entities.properties.ItemProperty
apply, cloneProperty, defaultConfiguration, getActions, getCurrentValue, getCurrentValues, getOwner, getPopOut, set, set, setOwner, unsafeSet, unsafeSet, updateTexture
-
Constructor Details
-
ConnectorBridge
public ConnectorBridge()
-
-
Method Details
-
getDescription
- Overrides:
getDescriptionin classConnector- Returns:
- the
PropertyDescriptionof this Property
-
connectionDirections
Description copied from interface:ConnectableBy default, connectable items connect visually to 8 directions. ^ ^ ^ ^ me ^ ^ ^ ^ Override this method to change visual connection directions -
acceptSignalFrom
public void acceptSignalFrom(Connectable source, Types.IntVector2 pos, GameContext ctx, HashSet<Integer> seen) Description copied from interface:ConnectableCalled when thisConnectablereceives a signal from another.- Specified by:
acceptSignalFromin interfaceConnectable- Overrides:
acceptSignalFromin classConnector- Parameters:
source- the Connectable sending the signalpos- the source's positionseen- A set of already visited IDs
-
propagate
Description copied from interface:ConnectablePotentially propagate the the connectors current siganl- Specified by:
propagatein interfaceConnectable- Overrides:
propagatein classConnectorseen- is IDs of allConnectableitems which have already propagated
-
getType
- Overrides:
getTypein classConnector- Returns:
PropertyTypeof this property. This allows us to get the property of an item from it's property map- See Also:
-