Package gaiasky.interafce.components
Class VisibilityComponent
java.lang.Object
gaiasky.interafce.components.GuiComponent
gaiasky.interafce.components.VisibilityComponent
- All Implemented Interfaces:
IObserver
public class VisibilityComponent extends GuiComponent implements IObserver
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Button>
buttonMap
-
Constructor Summary
Constructors Constructor Description VisibilityComponent(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage)
-
Method Summary
Modifier and Type Method Description void
dispose()
Disposes the component.void
initialize()
Initialises the component.void
notify(Events event, java.lang.Object... data)
void
setVisibilityEntitites(ComponentTypes.ComponentType[] ve, boolean[] v)
Methods inherited from class gaiasky.interafce.components.GuiComponent
getActor, group
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
buttonMap
protected java.util.Map<java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Button> buttonMap
-
-
Constructor Details
-
VisibilityComponent
public VisibilityComponent(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage)
-
-
Method Details
-
setVisibilityEntitites
-
initialize
public void initialize()Description copied from class:GuiComponent
Initialises the component.- Specified by:
initialize
in classGuiComponent
-
notify
-
dispose
public void dispose()Description copied from class:GuiComponent
Disposes the component.- Specified by:
dispose
in classGuiComponent
-