erland.game.tileadventure
Class BitmapObject

java.lang.Object
  extended by erland.game.tileadventure.GameObject
      extended by erland.game.tileadventure.BitmapObject
All Implemented Interfaces:
MapObjectInterface, Cloneable
Direct Known Subclasses:
MapEditorObject

public class BitmapObject
extends GameObject


Field Summary
static int drawCount
           
 
Constructor Summary
BitmapObject()
           
 
Method Summary
 void draw(Graphics g)
           
 void read(ParameterValueStorageExInterface in)
           
 void setImage(Image image, int subImage)
          Set the background image
 void setImage(String image, int subImage)
          Set the background image
 void write(ParameterValueStorageExInterface out)
           
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

drawCount

public static int drawCount
Constructor Detail

BitmapObject

public BitmapObject()
Method Detail

setImage

public void setImage(Image image,
                     int subImage)
Set the background image

Parameters:
image - The main image
subImage - 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 image
subImage - 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.