cleoni.adv
Class Messages

java.lang.Object
  extended by cleoni.adv.Messages

public class Messages
extends java.lang.Object

This class is responsible for loading and preparing localised messages to be used by the game engine.


Field Summary
 java.lang.String charset
          Charset
 java.lang.String[] cmd
          Commands
 java.lang.String[] msg
          Messages
 boolean specialmode
           
 
Constructor Summary
Messages(java.lang.String msgFile)
          Messages constructor comment.
 
Method Summary
static java.lang.String actualize(java.lang.String astr, java.lang.String par1)
          Replaces occurrences of $1 with par1 in the specifried string
static java.lang.String actualize(java.lang.String astr, java.lang.String par1, java.lang.String par2)
          Replaces occurrences of $1 and $2 with the specified values in the specifried string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

charset

public java.lang.String charset
Charset


specialmode

public boolean specialmode

cmd

public java.lang.String[] cmd
Commands


msg

public java.lang.String[] msg
Messages

Constructor Detail

Messages

public Messages(java.lang.String msgFile)
         throws DimxException
Messages constructor comment.

Parameters:
msgFile -
Throws:
DimxException
Method Detail

actualize

public static java.lang.String actualize(java.lang.String astr,
                                         java.lang.String par1,
                                         java.lang.String par2)
Replaces occurrences of $1 and $2 with the specified values in the specifried string

Parameters:
astr -
par1 -
par2 -
Returns:

actualize

public static java.lang.String actualize(java.lang.String astr,
                                         java.lang.String par1)
Replaces occurrences of $1 with par1 in the specifried string

Parameters:
astr -
par1 -
Returns: