public class UserInterface
extends java.lang.Object
implements java.awt.event.ActionListener
Constructor and Description |
---|
UserInterface(GameEngine gameEngine)
Construct a UserInterface.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Actionlistener interface for entry textfield.
|
void |
enable(boolean on)
Enable or disable input in the input field.
|
void |
print(java.lang.String text)
Print out some text into the text area.
|
void |
println(java.lang.String text)
Print out some text into the text area, followed by a line break.
|
void |
showImage(java.lang.String imageName)
Show an image file in the interface.
|
public UserInterface(GameEngine gameEngine)
gameEngine
- The GameEngine object implementing the game logic.public void print(java.lang.String text)
public void println(java.lang.String text)
public void showImage(java.lang.String imageName)
public void enable(boolean on)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener