cleoni.adv
Class View

java.lang.Object
  extended by cleoni.adv.View
Direct Known Subclasses:
ViewAdmin, ViewCluster, ViewDirect, ViewHOF, ViewMap

public class View
extends java.lang.Object

This class is used to produce custom views for the game. You can implement a custom view by creating of a subclass of this one, and using it in the multiplayer.service method. In future releases, custom views could be specified also via configuration so it won't be acutally necessary to change and recopile source code.


Constructor Summary
View()
           
 
Method Summary
static java.lang.String htmlCharset(World world)
           
static void htmlImage(Image im, java.lang.StringBuffer sb, Client client, java.lang.String alt)
           
static void htmlWidthHeight(Image im, java.lang.StringBuffer sb, double factorx)
           
static void outputHtml(World world, java.io.PrintWriter out, Player thisPlayer, Skin skin, java.lang.String commands)
           
static void outputHtml(World world, java.io.PrintWriter out, Skin skin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

View

public View()
Method Detail

htmlCharset

public static java.lang.String htmlCharset(World world)

htmlWidthHeight

public static void htmlWidthHeight(Image im,
                                   java.lang.StringBuffer sb,
                                   double factorx)

htmlImage

public static void htmlImage(Image im,
                             java.lang.StringBuffer sb,
                             Client client,
                             java.lang.String alt)

outputHtml

public static void outputHtml(World world,
                              java.io.PrintWriter out,
                              Skin skin)
                       throws DimxException
Throws:
DimxException

outputHtml

public static void outputHtml(World world,
                              java.io.PrintWriter out,
                              Player thisPlayer,
                              Skin skin,
                              java.lang.String commands)
                       throws DimxException
Throws:
DimxException