Adventure at Umalu  22nd March, 2013
Rogue-like Dungeon Crawler, written in Java
 All Classes Functions Variables Pages
Static Public Member Functions | Static Public Attributes | List of all members
rogue.level.Screen Class Reference

Static Public Member Functions

static void initialiseScreen ()
 
static void intro (String name, String filePath, TiledTermPanel term, World world)
 
static void showFile (String filePath, TiledTermPanel term, World world)
 
static void printLine (String line, TiledTermPanel term, World world)
 
static void printBlock (ArrayList< String > lines, TiledTermPanel term, World world)
 
static void redrawMap ()
 
static void redrawMap (String statusLine)
 
static void redrawEventLine (String eventLine)
 
static void redrawEventLine (String eventLine, boolean saveInLog)
 
static void putText (ArrayList< String > lines)
 
static void showEventLog ()
 
static void showEventLineAndPutToConsole (String eventLine, boolean saveInLog, boolean waitForKey)
 
static void anyKey ()
 

Static Public Attributes

static World lastWorld
 
static TiledTermPanel lastTerminal
 
static ArrayList< String > eventLog
 

Detailed Description

Used to print Stuff in Terminal.

Author

Member Function Documentation

static void rogue.level.Screen.anyKey ( )
static

Waits for a pressed Key

static void rogue.level.Screen.initialiseScreen ( )
static

Creates an empty EventLog

static void rogue.level.Screen.intro ( String  name,
String  filePath,
TiledTermPanel  term,
World  world 
)
static

Reads a file at filePath and shows its content intro Style, include Players

Parameters
nameCharacter Name, will be insterted in Text at @-Signs
filePathPath to File, which Contents will be added
termCurrently Used Terminal
worldCurrently Used World
static void rogue.level.Screen.printBlock ( ArrayList< String >  lines,
TiledTermPanel  term,
World  world 
)
static

Prints a Block of Lines on Screen. Deletes all former content.

Parameters
lineArray of Lines
static void rogue.level.Screen.printLine ( String  line,
TiledTermPanel  term,
World  world 
)
static

Puts a fullscreen Message on Screen. Deletes all former content.

Parameters
lineLine to be put on Screen
static void rogue.level.Screen.putText ( ArrayList< String >  lines)
static

Prints a Block of Text at Fullscreen

Parameters
linesLines to be printed
static void rogue.level.Screen.redrawEventLine ( String  eventLine)
static

Puts Text in Eventline. redrawEventLine does not delete content on its own!

Parameters
eventLineLine to be printed.
static void rogue.level.Screen.redrawEventLine ( String  eventLine,
boolean  saveInLog 
)
static

Prints a Text in Eventline, but gives possibility to not save it in Eventlog (e.g. Levelswitch)

Parameters
eventLineLine to be printed
saveInLogTrue, if this Message should be used in Eventlog, other should be set to false
static void rogue.level.Screen.redrawMap ( )
static

Redraws Content of Window

Parameters
termCanvas for Drawing
worldUsed World
static void rogue.level.Screen.redrawMap ( String  statusLine)
static

Redraw map, put Statusline below Map

Parameters
statusLineStatusline to be printed
static void rogue.level.Screen.showEventLineAndPutToConsole ( String  eventLine,
boolean  saveInLog,
boolean  waitForKey 
)
static

Prints a Text to Eventline and Console, gives possibility to not save it in Eventlog

Parameters
eventLineLine to be printed
saveInLogTrue, if this Message should be logged in Eventlog
waitForKeyTrue, if Application should wait for Keyinput by User
static void rogue.level.Screen.showEventLog ( )
static

Shows Eventlog

static void rogue.level.Screen.showFile ( String  filePath,
TiledTermPanel  term,
World  world 
)
static

Shows Content of File by printing it on Screen

Parameters
filePathPath to File
termCurrently used Term

Member Data Documentation

ArrayList<String> rogue.level.Screen.eventLog
static

Last Eventmessages

TiledTermPanel rogue.level.Screen.lastTerminal
static

Last used Terminal

World rogue.level.Screen.lastWorld
static

Last used World


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