feud.testgame.util
Class TextBlitter

java.lang.Object
  extended byfeud.testgame.util.TextBlitter

public class TextBlitter
extends java.lang.Object

A class to blit text. Based on class written by CyberKilla.


Constructor Summary
TextBlitter()
           
 
Method Summary
static void blitText(com.threed.jpct.FrameBuffer buffer, java.lang.String line, int x, int y)
          Blits some text.
static void blitText(com.threed.jpct.FrameBuffer buffer, java.lang.String line, int x, int y, int maxX, int maxY)
          Blits some text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextBlitter

public TextBlitter()
Method Detail

blitText

public static void blitText(com.threed.jpct.FrameBuffer buffer,
                            java.lang.String line,
                            int x,
                            int y)
Blits some text.

Parameters:
buffer - the blitting target
line - the text
x - the x-position of the text
y - the y-position of the text

blitText

public static void blitText(com.threed.jpct.FrameBuffer buffer,
                            java.lang.String line,
                            int x,
                            int y,
                            int maxX,
                            int maxY)
Blits some text.

Parameters:
buffer - the blitting target
line - the text
x - the x-position of the text
y - the y-position of the text
maxX - the x-limit of the area to blit into
maxY - the y-limit of the area to blit into