|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgame.physics.CStaticShape
game.graphics.sprite.CStaticSprite
public class CStaticSprite
A simple non-moving, unanimated sprite. Usefull for screen deco / HUD.
| Field Summary | |
|---|---|
private java.awt.Image |
m_sprite
|
| Fields inherited from class game.physics.CStaticShape |
|---|
m_box, m_gameDisplay, m_isHidden |
| Constructor Summary | |
|---|---|
CStaticSprite(IGameDisplay gameRect,
CBoundingBox box,
java.awt.Image sprite)
|
|
| Method Summary | |
|---|---|
void |
draw(java.awt.Graphics g)
Simply draws the sprite image. |
| Methods inherited from class game.physics.CStaticShape |
|---|
animate, cycle, drawBox, getCenter, getVelocity, hide, intersect, isHidden, show |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface game.graphics.IGraphicObject |
|---|
animate, cycle, getCenter, getVelocity, intersect |
| Field Detail |
|---|
private java.awt.Image m_sprite
| Constructor Detail |
|---|
public CStaticSprite(IGameDisplay gameRect,
CBoundingBox box,
java.awt.Image sprite)
gameRect - : the rectangle the sprite will evolve inbox - : the sprite's bounding box (can be different than image size)sprite - : the sprite's image| Method Detail |
|---|
public void draw(java.awt.Graphics g)
draw in interface IGraphicObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||