com.TeamHEC.LocomotionCommotion.UI_Elements
Class WarningMessage

java.lang.Object
  extended by com.TeamHEC.LocomotionCommotion.UI_Elements.WarningMessage

public class WarningMessage
extends java.lang.Object

Author:
Robert Precious WarningMessage is a class you can use for whatever you need. Just call fireWarningWindow(warning title, warning body) and it will appear when you need it the user can just click it to make it disappear.

Constructor Summary
WarningMessage()
           
 
Method Summary
 void create(com.badlogic.gdx.scenes.scene2d.Stage stage)
           
static void fireWarningWindow(java.lang.String title, java.lang.String body)
          Makes the WarningWindow visible to the user It adds the actors to the end of actors (so it is on top of everything).
 boolean isVisible()
           
static void killWarningWindow()
          Removes the WarningWindow by removing its actors from the stage.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WarningMessage

public WarningMessage()
Method Detail

create

public void create(com.badlogic.gdx.scenes.scene2d.Stage stage)

fireWarningWindow

public static void fireWarningWindow(java.lang.String title,
                                     java.lang.String body)
Makes the WarningWindow visible to the user It adds the actors to the end of actors (so it is on top of everything).

Parameters:
title - - The title for your window e.g. WARNING
body - - The body for your window e.g. You dont have enough gold for this.

killWarningWindow

public static void killWarningWindow()
Removes the WarningWindow by removing its actors from the stage. Also, if the window is the end-game message, the system is closed.


isVisible

public boolean isVisible()
Returns:
whether the box is visible