org.deken.game.sprites
Class NullDecor

java.lang.Object
  extended by org.deken.game.sprites.Sprite
      extended by org.deken.game.sprites.Decor
          extended by org.deken.game.sprites.NullDecor
All Implemented Interfaces:
Updateable

public class NullDecor
extends Decor

Title: NullDecor

Description: The NullDecor is used for setting place holders in a GameMap. It does nothing in the draw() and update() methods.

Copyright: Copyright (c) Mar 16, 2013

Version:
1.0
Author:
Gary Deken

Field Summary
 
Fields inherited from class org.deken.game.sprites.Decor
animation
 
Fields inherited from class org.deken.game.sprites.Sprite
boundingBox, collisionMap, location, size
 
Constructor Summary
NullDecor(SpriteSize size)
           
 
Method Summary
 Decor copy()
           
 void draw(java.awt.Graphics2D graphics, int xOffset, int yOffset)
          Draw
 void update(long elapseTime)
          update
 
Methods inherited from class org.deken.game.sprites.Decor
copyBase, getAnimation, setAnimation, spriteCollison
 
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
 

Constructor Detail

NullDecor

public NullDecor(SpriteSize size)
Method Detail

copy

public Decor copy()
Overrides:
copy in class Decor
Returns:
Decor

draw

public void draw(java.awt.Graphics2D graphics,
                 int xOffset,
                 int yOffset)
Description copied from class: Decor
Draw

Overrides:
draw in class Decor

update

public void update(long elapseTime)
Description copied from class: Decor
update

Specified by:
update in interface Updateable
Overrides:
update in class Decor
Parameters:
elapseTime - long