com.springrts.ai.oo
Class Log

java.lang.Object
  extended by com.springrts.ai.oo.Log
All Implemented Interfaces:
Comparable<Log>

public class Log
extends Object
implements Comparable<Log>


Method Summary
 int compareTo(Log other)
           
 boolean equals(Object otherObject)
           
 void exception(String msg, int severety, boolean die)
          Inform the engine of an error that happend in the interface.
 int hashCode()
           
 void log(String msg)
          This will end up in infolog
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

compareTo

public int compareTo(Log other)
Specified by:
compareTo in interface Comparable<Log>

equals

public boolean equals(Object otherObject)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

log

public void log(String msg)
This will end up in infolog


exception

public void exception(String msg,
                      int severety,
                      boolean die)
Inform the engine of an error that happend in the interface.

Parameters:
msg - error message
severety - from 10 for minor to 0 for fatal
die - if this is set to true, the engine assumes the interface is in an irreparable state, and it will unload it immediately.