|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectzombie.core.utils.Utility
public final class Utility
General Utility;
used to load textures and prints easyway messages at viedo.
| Constructor Summary | |
|---|---|
Utility()
|
|
| Method Summary | |
|---|---|
static void |
allowsAllError()
allows all errors |
static void |
allowsError(java.lang.String error)
allows an error message |
static void |
drawQuad(float x,
float y,
float width,
float height,
ITexture image)
draws a quad on screen |
static void |
drawRect(float x,
float y,
float width,
float height,
float red,
float green,
float blue)
|
static void |
error(java.lang.String type,
java.lang.Exception e)
shows an error on screen |
static void |
error(java.lang.String message,
java.lang.String type)
shows an error/message on screen |
static void |
error(java.lang.String error,
java.lang.String type,
java.lang.Exception e)
shows an error on screen |
static java.lang.String |
getLastError()
returns the last error that is occurred |
static java.io.ObjectInputStream |
getLocalFile(java.lang.String path)
|
static void |
ignoreError(java.lang.String error)
ignores an error message |
static java.lang.String |
readLine(java.io.InputStream in)
reads a line from an inputstream |
static void |
setStandardBlendingMode()
sets the Standard Blending function. for "experts" it's: glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); |
static void |
showCoreMessages(boolean value)
sets if shows or not the errors/messages |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utility()
| Method Detail |
|---|
public static final void allowsAllError()
public static void allowsError(java.lang.String error)
public static void drawQuad(float x,
float y,
float width,
float height,
ITexture image)
public static void drawRect(float x,
float y,
float width,
float height,
float red,
float green,
float blue)
public static void error(java.lang.String type,
java.lang.Exception e)
public static void error(java.lang.String message,
java.lang.String type)
public static void error(java.lang.String error,
java.lang.String type,
java.lang.Exception e)
public static java.lang.String getLastError()
public static java.io.ObjectInputStream getLocalFile(java.lang.String path)
public static void ignoreError(java.lang.String error)
public static final java.lang.String readLine(java.io.InputStream in)
throws java.io.IOException
dis - DataInputStream
java.io.IOExceptionpublic static void setStandardBlendingMode()
public static void showCoreMessages(boolean value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||