sfgp.rpgkit
Class RPGCharacter

java.lang.Object
  extended by sfgp.rpgkit.AbstractTile
      extended by sfgp.rpgkit.RPGCharacter

public class RPGCharacter
extends AbstractTile


Field Summary
static int BACKWARD
           
(package private)  java.lang.StringBuffer characterName
           
(package private)  java.lang.String characterType
           
(package private)  javax.swing.ImageIcon currentImage
           
private  int direction
           
static int FORWARD
           
(package private)  javax.swing.ImageIcon[] image
           
static int LEFT
           
static int RIGHT
           
 
Constructor Summary
RPGCharacter(java.lang.String ct, java.lang.String cn, java.lang.String baseImg, int d)
           
 
Method Summary
 java.lang.String getCharacterName()
           
 java.lang.String getCharacterType()
           
 int getDirection()
           
 javax.swing.ImageIcon getTile()
           
 void setCharacterName(java.lang.String cn)
           
 void setDirection(int d)
           
 
Methods inherited from class sfgp.rpgkit.AbstractTile
getLocation, getX, getY, paintIcon, setLocation, setLocation, setX, setY, specialAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

characterType

final java.lang.String characterType

characterName

java.lang.StringBuffer characterName

image

final javax.swing.ImageIcon[] image

currentImage

javax.swing.ImageIcon currentImage

direction

private int direction

FORWARD

public static final int FORWARD
See Also:
Constant Field Values

BACKWARD

public static final int BACKWARD
See Also:
Constant Field Values

LEFT

public static final int LEFT
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values
Constructor Detail

RPGCharacter

public RPGCharacter(java.lang.String ct,
                    java.lang.String cn,
                    java.lang.String baseImg,
                    int d)
             throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getCharacterType

public java.lang.String getCharacterType()

getTile

public javax.swing.ImageIcon getTile()
Overrides:
getTile in class AbstractTile

getCharacterName

public java.lang.String getCharacterName()

setCharacterName

public void setCharacterName(java.lang.String cn)

setDirection

public void setDirection(int d)

getDirection

public int getDirection()