Bandidos
|
Protected Member Functions | |
void | awake () |
void | updated (float dt) |
void | rendered (RenderComponents renderComponents) |
void | destroyed () |
abstract void | onPopUpDestroyed () |
abstract void | onPopUpAwake () |
Protected Member Functions inherited from com.mygdx.game.engine.entities.BaseEntity | |
abstract void | awake () |
abstract void | updated (float dt) |
abstract void | rendered (RenderComponents renderComponents) |
abstract void | destroyed () |
This is the base class for all pop-ups. The pop-up will be rendered above all else. A cover pop-up will also change the touch layer. If a cover pop-up and you want to check for touch, you want to check with the 'getLayer()' method if the touch was in your layer If not a cover pop-up, you want to check if this is the current top pop-up to allow interaction
com.mygdx.game.popUpSystem.BasePopUp.BasePopUp | ( | boolean | isCoverPopUp | ) |
This will create a pop-up which work side to side with the PopUpSystem singleton
isCoverPopUp | means that it will switch the touch layer of the touch channel. It will also render a black alpha cover under the pop up |
|
protected |
|
protected |
int com.mygdx.game.popUpSystem.BasePopUp.getLayer | ( | ) |
Returns the touch layer which this pop-up is in.
RenderComponent com.mygdx.game.popUpSystem.BasePopUp.getRenderComponent | ( | ) |
Returns the RenderComponent of this pop-up
boolean com.mygdx.game.popUpSystem.BasePopUp.isCoverPopUp | ( | ) |
Returns whether this pop up is a cover pop up, when true, this pop-up also renders a black alpha cover under the pop up when it is the top cover pop up
boolean com.mygdx.game.popUpSystem.BasePopUp.isTopCoverPopUp | ( | ) |
Returns whether this pop up is the top of all cover pop ups. Will return false also when its not a cover pop up
boolean com.mygdx.game.popUpSystem.BasePopUp.isTopPopUp | ( | ) |
Returns whether this pop up is the current top pop up of all pop ups which are active on the screen.
|
abstractprotected |
Triggered when the pop-up has been instantiated.
|
abstractprotected |
Triggered when the pop-up has been destroyed
|
protected |
void com.mygdx.game.popUpSystem.BasePopUp.system_setLayer | ( | int | layer | ) |
Warning: This method may only be called by the PopUpSystem This will set the layer in which the pop-up is currently in.
layer | which represents the touch layer of the pop-up |
void com.mygdx.game.popUpSystem.BasePopUp.system_setTopCoverPopUp | ( | boolean | isTopCover | ) |
Warning: This method may only be called by the PopUpSystem This method will set this pop-up to the top cover pop up
isTopCover | indicates if this popUp is the current highest cover pop-up on the stack |
void com.mygdx.game.popUpSystem.BasePopUp.system_setTopPopUp | ( | boolean | isTop | ) |
Warning: This method may only be called by the PopUpSystem This method will set this pop-up to the top pop up
isTop | indicates if this popUp is the current top pop-up |
|
protected |