com.wistrand.midlet.sprite
Class PolySprite

java.lang.Object
  |
  +--com.wistrand.midlet.sprite.Sprite
        |
        +--com.wistrand.midlet.sprite.PolySprite
Direct Known Subclasses:
StarSprite

public abstract class PolySprite
extends Sprite

Sprite which uses a point array to draw a polygon.


Fields inherited from class com.wistrand.midlet.sprite.Sprite
col, dx, dy, id, idCount, parent, px, py, rot, size, x, y
 
Constructor Summary
PolySprite()
           
 
Method Summary
abstract  int[] getPoints()
          Get the (x,y) points describing the sprite outline.
 void paint(javax.microedition.lcdui.Graphics g)
          Paint the sprite on a Graphics.
 
Methods inherited from class com.wistrand.midlet.sprite.Sprite
moveTo, setColor, setParent, setSpeed, toString, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolySprite

public PolySprite()
Method Detail

getPoints

public abstract int[] getPoints()
Get the (x,y) points describing the sprite outline.

paint

public void paint(javax.microedition.lcdui.Graphics g)
Description copied from class: Sprite
Paint the sprite on a Graphics. Should be overridden by subclasses since the default method does nothing.
Overrides:
paint in class Sprite