Class ConnectorSink
java.lang.Object
group24.escaperoom.entities.properties.ItemProperty<PhantomProperty.PhantomPropertyValue>
group24.escaperoom.entities.properties.PhantomProperty
group24.escaperoom.entities.properties.Connector
group24.escaperoom.entities.properties.ConnectorSink
- 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.getType()voidpropagate(GameContext ctx, HashSet<Integer> seen) Potentially propagate the the connectors current siganlvoidsetActive(boolean connected, GameContext ctx) Set theConnectableto beconnectedThis may or may not propagate the signalMethods inherited from class group24.escaperoom.entities.properties.Connector
getConnectorType, getCustomItemConfigurationMenu, isConnected, read, 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, updateTextureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface group24.escaperoom.entities.properties.Connectable
connectionDirections
-
Constructor Details
-
ConnectorSink
public ConnectorSink()
-
-
Method Details
-
getDescription
- Overrides:
getDescriptionin classConnector- Returns:
- the
PropertyDescriptionof this Property
-
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
-
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
-
setActive
Description copied from interface:ConnectableSet theConnectableto beconnectedThis may or may not propagate the signal- Specified by:
setActivein interfaceConnectable- Overrides:
setActivein classConnector
-
getDisplayName
- Overrides:
getDisplayNamein classConnector- Returns:
- name of this property, used as a display string in menus
-
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:
-