![]() |
Adventure at Umalu
22nd March, 2013
Rogue-like Dungeon Crawler, written in Java
|
Classes | |
class | Screen |
Public Member Functions | |
TermPanel (int columns, int rows, int fontSize) | |
TermPanel () | |
JPanel | panel () |
char | getKey () throws InterruptedException |
void | keyPressed (KeyEvent e) |
void | refreshScreen () |
![]() | |
Terminal () | |
void | bufferChar (Coordinate coord, ColoredChar ch) |
final void | bufferChar (int x, int y, ColoredChar ch) |
ColoredChar | charAt (Coordinate coord) |
final ColoredChar | charAt (int x, int y) |
final void | bufferString (int x, int y, String str, Color color) |
final void | bufferString (Coordinate coord, String str, Color color) |
final void | bufferString (int x, int y, String str) |
final void | bufferString (Coordinate coord, String str) |
void | clearBuffer () |
void | saveBuffer () |
void | recallBuffer () |
void | registerCamera (Camera camera, Coordinate screenCenter) |
final void | registerCamera (Camera camera, int screenCenterX, int screenCenterY) |
Coordinate | cameraCenter (Camera camera) |
boolean | cameraRegistered (Camera camera) |
void | unregisterCamera (Camera camera) |
void | bufferCamera (Camera camera) |
final void | bufferCameras () |
Static Public Member Functions | |
static TermPanel | getFramedTerminal (String title) |
Static Public Attributes | |
static final int | DEFAULT_COLS = 80 |
static final int | DEFAULT_ROWS = 33 |
static final int | DEFAULT_SIZE = 12 |
Protected Member Functions | |
TermPanel (Screen screen) | |
Screen | screen () |
![]() | |
final Map< Coordinate, ColoredChar > | getBuffer () |
Static Protected Member Functions | |
static void | frameTermPanel (TermPanel term, String title) |
Implements a
on a
, which can then be embedded into any container able to use a
.
jade.ui.TermPanel.TermPanel | ( | int | columns, |
int | rows, | ||
int | fontSize | ||
) |
Constructs a new
with the given dimensions. Note that the rows and columns can be changed by resizing the underlying JPanel, but font size is fixed.
columns | the default number of columns to display |
rows | the default number of rows to display |
fontSize | the size of each tile |
jade.ui.TermPanel.TermPanel | ( | ) |
Constructs a new
with the default dimensions. There will be 80 columns, 24 rows, and a font size of 12.
|
static |
|
virtual |
Returns the next key press as a
. This method block until a key press is available.
InterruptedException |
Implements jade.ui.Terminal.
JPanel jade.ui.TermPanel.panel | ( | ) |
|
virtual |
Refreshes the screen to reflect the current state of the buffer. Until this method is called, no changes to the buffer should be displayed.
InterruptedException |
Implements jade.ui.Terminal.
Reimplemented in jade.ui.TiledTermPanel.