sfgp.rpgkit
Class RPGCharacter
java.lang.Object
sfgp.rpgkit.AbstractTile
sfgp.rpgkit.RPGCharacter
public class RPGCharacter
- extends AbstractTile
Constructor Summary |
RPGCharacter(java.lang.String ct,
java.lang.String cn,
java.lang.String baseImg,
int d)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
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()