Bandidos
Public Member Functions | Protected Member Functions | List of all members
com.mygdx.game.popUps.EndScreenPopUp Class Reference
Inheritance diagram for com.mygdx.game.popUps.EndScreenPopUp:
com.mygdx.game.popUps.BaseGamePopUp com.mygdx.game.engine.events.IEventReceiver com.mygdx.game.popUpSystem.BasePopUp com.mygdx.game.engine.entities.BaseEntity com.mygdx.game.engine.events.EventDispatcher

Public Member Functions

 EndScreenPopUp (boolean isCoverPopUp)
 
void displayEndScreen (int score, int wave, int highscore)
 
void onReceiveEvent (Event event)
 
- Public Member Functions inherited from com.mygdx.game.popUps.BaseGamePopUp
 BaseGamePopUp (boolean isCoverPopUp)
 
void closePopUp ()
 
- Public Member Functions inherited from com.mygdx.game.popUpSystem.BasePopUp
 BasePopUp (boolean isCoverPopUp)
 
boolean isCoverPopUp ()
 
boolean isTopPopUp ()
 
boolean isTopCoverPopUp ()
 
void system_setTopPopUp (boolean isTop)
 
void system_setTopCoverPopUp (boolean isTopCover)
 
void system_setLayer (int layer)
 
int getLayer ()
 
RenderComponent getRenderComponent ()
 
- Public Member Functions inherited from com.mygdx.game.engine.entities.BaseEntity
 BaseEntity ()
 
TransformComponent getTransformComponent ()
 
boolean hasInstanceOfComponent (BaseEntityComponent componentInstance)
 
void addTag (String tag)
 
void removeTag (String tag)
 
boolean hasTag (String tag)
 
void update (float dt)
 
void render (RenderComponents renderComponents)
 
void destroy ()
 
boolean isDestroyed ()
 
- Public Member Functions inherited from com.mygdx.game.engine.events.EventDispatcher
void addEventListener (String type, IEventReceiver listeningClass)
 
void dispatchEvent (Event event)
 
void removeEventListener (String type, IEventReceiver listener)
 
boolean hasEventListener (String type)
 
ArrayList< ListenerItemgetAllListeners ()
 
void destroyAllListeners ()
 
void clean ()
 

Protected Member Functions

void onPopUpAwake ()
 
void updated (float dt)
 
void onPopUpDestroyed ()
 
- Protected Member Functions inherited from com.mygdx.game.popUps.BaseGamePopUp
void onPopUpAwake ()
 
- Protected Member Functions inherited from com.mygdx.game.popUpSystem.BasePopUp
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 ()
 

Detailed Description

This is the pop-up which represents the Game Over screen at the end of a play. It shows the score it has to display when requested with the 'displayEndScreen' method

Author
Ramses Di Perna

Constructor & Destructor Documentation

◆ EndScreenPopUp()

com.mygdx.game.popUps.EndScreenPopUp.EndScreenPopUp ( boolean  isCoverPopUp)

Member Function Documentation

◆ displayEndScreen()

void com.mygdx.game.popUps.EndScreenPopUp.displayEndScreen ( int  score,
int  wave,
int  highscore 
)

Displays the End screen stats. This can only be triggered once for every EndScreenPopUp instance

Parameters
scoreto display
waveto display
highscoreto display (Will show extra effects when the score == the highscore)

◆ onPopUpAwake()

void com.mygdx.game.popUps.EndScreenPopUp.onPopUpAwake ( )
protected

◆ onPopUpDestroyed()

void com.mygdx.game.popUps.EndScreenPopUp.onPopUpDestroyed ( )
protected

◆ onReceiveEvent()

void com.mygdx.game.popUps.EndScreenPopUp.onReceiveEvent ( Event  event)

This will be triggered when an event has been fired of type which this implementing class was listening to.

Parameters
eventwhich has one of the event types which is listened to.

Implements com.mygdx.game.engine.events.IEventReceiver.

◆ updated()

void com.mygdx.game.popUps.EndScreenPopUp.updated ( float  dt)
protected

The documentation for this class was generated from the following file: