erland.game.tileadventure
Class BitmapObject
java.lang.Object
erland.game.tileadventure.GameObject
erland.game.tileadventure.BitmapObject
- All Implemented Interfaces:
- MapObjectInterface, Cloneable
- Direct Known Subclasses:
- MapEditorObject
public class BitmapObject
- extends GameObject
Methods inherited from class erland.game.tileadventure.GameObject |
action, actionChild, clone, fillBoundingBox, getActionMap, getBoundingBox, getChilds, getContainer, getDrawingPosX, getDrawingPosY, getEnvironment, getMoveVector, getMovingPosX, getMovingPosY, getMovingPosZ, getObjectMap, getParent, getPixelPosX, getPixelPosY, getPosX, getPosY, getPosZ, getRedraw, init, isActionPossible, isMovable, isMovableChild, isPushable, isPushableChild, setActionMap, setChilds, setContainer, setMoveVector, setObjectMap, setParent, setPos, update |
drawCount
public static int drawCount
BitmapObject
public BitmapObject()
setImage
public void setImage(Image image,
int subImage)
- Set the background image
- Parameters:
image
- The main imagesubImage
- The sub image number of the sub image to use
setImage
public void setImage(String image,
int subImage)
- Set the background image
- Parameters:
image
- The name of the main imagesubImage
- The sub image number of the sub image to use
draw
public void draw(Graphics g)
write
public void write(ParameterValueStorageExInterface out)
- Overrides:
write
in class GameObject
read
public void read(ParameterValueStorageExInterface in)
- Overrides:
read
in class GameObject
Copyright © 2003-2006 Erland Isaksson. All Rights Reserved.