|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deken.game.sprites.Sprite
org.deken.game.sprites.Decor
public class Decor
Title: Decor
Description: An unmoving Sprite
Copyright: Copyright (c) 2002
Field Summary | |
---|---|
protected Animation |
animation
|
Fields inherited from class org.deken.game.sprites.Sprite |
---|
boundingBox, collisionMap, location, size |
Constructor Summary | |
---|---|
Decor(Animation animation,
SpriteSize size)
Decor |
|
Decor(SpriteSize size)
Decor This constructor is used by the DocumentManager. |
Method Summary | |
---|---|
Decor |
copy()
|
protected Decor |
copyBase(Decor newDecor)
|
void |
draw(java.awt.Graphics2D graphics,
int xOffset,
int yOffset)
Draw |
Animation |
getAnimation()
getAnimation |
void |
setAnimation(Animation animation)
setAnimation |
void |
spriteCollison(Sprite collideSprite)
Handle the collision with another sprite. |
void |
update(long elapseTime)
update |
Methods inherited from class org.deken.game.sprites.Sprite |
---|
getBounds, getDepth, getHeight, getLocation, getName, getSize, getWidth, getXLocation, getYLocation, removeFromMap, setBoundingBox, setBoundingBox, setCollisionMap, setLocation, setName, setSize, toString, updateLocation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Animation animation
Constructor Detail |
---|
public Decor(SpriteSize size)
size
- SpriteSizepublic Decor(Animation animation, SpriteSize size)
animation
- Animationsize
- SpriteSizeMethod Detail |
---|
public Decor copy()
copy
in class Sprite
public void draw(java.awt.Graphics2D graphics, int xOffset, int yOffset)
draw
in class Sprite
graphics
- xOffset
- yOffset
- public void update(long elapseTime)
update
in interface Updateable
update
in class Sprite
elapseTime
- longpublic void spriteCollison(Sprite collideSprite)
Sprite
spriteCollison
in class Sprite
public Animation getAnimation()
Retrieve the animation strip for this sprite.
public void setAnimation(Animation animation)
This sets the animation strip for the this sprite.
animation
- Animationprotected Decor copyBase(Decor newDecor)
newDecor
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |