public class AnimationSprite extends ImageSprite
コンストラクタと説明 |
---|
AnimationSprite()
新しいアニメーションスプライトを作成します.
|
AnimationSprite(float w,
float h,
Animation animation,
ImagePainter dm)
新しいアニメーションスプライトを作成します.
|
AnimationSprite(float x,
float y,
float w,
float h)
新しいアニメーションスプライトを作成します.
|
AnimationSprite(float x,
float y,
float w,
float h,
Animation animation)
新しいアニメーションスプライトを作成します.
|
AnimationSprite(float x,
float y,
float w,
float h,
Animation animation,
ImagePainter model)
新しいアニメーションスプライトを作成します.
|
AnimationSprite(float x,
float y,
float w,
float h,
VectorF vector,
MovingModel mm,
Animation animation,
ImagePainter dm) |
AnimationSprite(float w,
float h,
VectorF vector,
MovingModel mm,
Animation animation,
ImagePainter dm) |
修飾子とタイプ | メソッドと説明 |
---|---|
AnimationSprite |
clone()
このスプライトの複製を作成します.
|
void |
draw(java.awt.Graphics2D g)
スプライトを描画します.
|
Animation |
getAnimation() |
boolean |
isImageUpdate() |
void |
setAnimation(Animation animation) |
void |
setImageUpdate(boolean imageUpdate) |
java.lang.String |
toString()
スプライトの文字列表記を取得します.
|
void |
update()
アニメーションを更新し、最新の画像を適用します.
|
getImage, getImageHeight, getImageWidth, getPainter, getSerializableImage, setImage, setImage, setPainter
getAngle, getMovingModel, getMovingModel, getNextCenter, getNextLocation, getSpeed, getVector, move, move, move, move, setAngle, setMovingModel, setSpeed, setVector
compareTo, contains, getBounds, getCenter, getCenterX, getCenterY, getHeight, getHitBounds, getLocation, getName, getPersonalCenter, getPersonalCenterX, getPersonalCenterY, getSize, getWidth, getX, getY, getZ, isExist, isVisible, setBounds, setBounds, setBounds, setExist, setHeight, setLocation, setLocation, setName, setSize, setSize, setVisible, setWidth, setX, setY, setZ, updateCenter, updatePersonalCenter
public AnimationSprite()
public AnimationSprite(float x, float y, float w, float h)
x
- スプライトのX座標を指定します。y
- スプライトのY座標を指定します。w
- スプライトの幅を指定します。h
- スプライトの高さを指定します。public AnimationSprite(float x, float y, float w, float h, Animation animation)
x
- スプライトのX座標を指定します。y
- スプライトのY座標を指定します。w
- スプライトの幅を指定します。h
- スプライトの高さを指定します。animation
- 表示するアニメーションを指定します。public AnimationSprite(float x, float y, float w, float h, Animation animation, ImagePainter model)
x
- スプライトのX座標を指定します。y
- スプライトのY座標を指定します。w
- スプライトの幅を指定します。h
- スプライトの高さを指定します。animation
- 表示する画像を指定します。model
- 描画方法を指定します。public AnimationSprite(float x, float y, float w, float h, VectorF vector, MovingModel mm, Animation animation, ImagePainter dm)
public AnimationSprite(float w, float h, VectorF vector, MovingModel mm, Animation animation, ImagePainter dm)
public AnimationSprite(float w, float h, Animation animation, ImagePainter dm)
w
- スプライトの幅を指定します。h
- スプライトの高さを指定します。animation
- 設定するアニメーション。dm
- 描画モデルを指定します。public Animation getAnimation()
public void setAnimation(Animation animation)
public void setImageUpdate(boolean imageUpdate)
public boolean isImageUpdate()
public void update()
public void draw(java.awt.Graphics2D g)
BasicSprite
draw
インタフェース内 Drawable
draw
クラス内 ImageSprite
g
- グラフィックスコンテキスト.public AnimationSprite clone()
BasicSprite
clone
クラス内 ImageSprite
public java.lang.String toString()
BasicSprite
toString
クラス内 ImageSprite