|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjurpe.system.Log
public final class Log
Keeps a log of events in the game
| Method Summary | |
|---|---|
void |
addEntry(java.lang.String text)
Add new string to log |
void |
addWarning(java.lang.String text)
Add new warning to the log |
java.lang.String[] |
getEntries()
Get log entries. |
java.lang.String |
getLatestEntry()
Get the last inserted entry |
java.lang.String |
getNewEntries()
Get latest entries. |
int |
getNumberOfEntries()
Get number of log entries. |
static Log |
getReference()
Return this log |
void |
setLogToFile(java.io.File file)
Log to external file |
java.lang.String |
toString()
Returns current log as a single String. |
void |
unsetLogToFile()
End a log to external file session. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void addWarning(java.lang.String text)
text - Text of warning.public void addEntry(java.lang.String text)
text - String to log
public void setLogToFile(java.io.File file)
throws java.io.IOException
file - File to save log into
java.io.IOExceptionpublic void unsetLogToFile()
public java.lang.String getNewEntries()
public java.lang.String[] getEntries()
public int getNumberOfEntries()
public java.lang.String getLatestEntry()
public java.lang.String toString()
toString in class java.lang.Objectpublic static Log getReference()
|
Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||