5 #include <Framework/Film.h>
31 if (timer > film->times[frameNumber])
33 timer -= film->times[frameNumber];
34 switch (film->nexts[frameNumber])
37 frameNumber += direct;
41 frameNumber += direct;
45 frameNumber += direct;
51 frameNumber = film->nexts[frameNumber];
55 if ((
unsigned int)frameNumber >= film->
imageS.size()) frameNumber = 0;
56 if (frameNumber < 0) frameNumber = (int)film->
imageS.size() - 1;
65 return film[0][frameNumber];
85 bool Draw(
const Point &座標,
bool 反転フラグ =
false)
const override
97 bool DrawRotate(
const Point &座標,
double 拡大率,
double 角度,
bool 反転フラグ =
false)
const override
矩形を表す図形クラス.
Definition: Rect.h:22
bool DrawRotateAxis(const Point &座標, const Point &回転軸座標, double 拡大率, double 角度, bool 反転フラグ=false) const override
回転軸、角度、拡大率を指定して描画.
Definition: Image.h:244
bool DrawExtend(const Rect &描画領域, bool 反転フラグ=false) const override
指定矩形内に描画.
Definition: Image.h:201
bool DrawPart(const Point &描画先座標, const Rect &描画元領域, bool 反転フラグ=false) const override
指定した一部分を描画.
Definition: Image.h:268
Image * GetFrame() const
現在のコマを取得.
Definition: Anime.h:63
bool Update(double 経過フレーム=1)
カウンタの更新.
Definition: Anime.h:27
std::vector< Image * > imageS
保持するImage
Definition: ImagePack.h:20
bool Draw(const Point &座標, bool 反転フラグ=false) const override
指定座標に描画.
Definition: Anime.h:85
void SetFrame(int コマ数)
コマの位置を設定.
Definition: Anime.h:70
点を表す図形クラス.
Definition: Point.h:22
bool DrawPart(const Point &描画先座標, const Rect &描画元領域, bool 反転フラグ=false) const override
指定した一部分を描画.
Definition: Anime.h:113
bool DrawRotate(const Point &座標, double 拡大率, double 角度, bool 反転フラグ=false) const override
角度、拡大率を指定して描画.
Definition: Image.h:229
画像データを表すクラス.
Definition: Image.h:17
bool DrawRotateAxis(const Point &座標, const Point &回転軸座標, double 拡大率X, double 拡大率Y, double 角度, bool 反転フラグ=false) const override
回転軸、角度、拡大率を縦横別に指定して描画.
Definition: Anime.h:107
bool DrawExtend(const Rect &描画領域, bool 反転フラグ=false) const override
指定矩形内に描画.
Definition: Anime.h:91
描画可能なクラスのインターフェース.
Definition: IDrawable.h:14
ImagePackにコマ毎の再生時間を追加したクラス.
Definition: Film.h:32
int GetSize() const
要素数を取得.
Definition: ImagePack.h:186
Filmに再生状態を付与したクラス.
Definition: Anime.h:11
Anime(const Film *再生する対象)
コンストラクタ.
Definition: Anime.h:21
bool DrawRotate(const Point &座標, double 拡大率, double 角度, bool 反転フラグ=false) const override
角度、拡大率を指定して描画.
Definition: Anime.h:97
bool Draw(const Point &座標, bool 反転フラグ=false) const override
指定座標に描画.
Definition: Image.h:181
bool DrawRotateAxis(const Point &座標, const Point &回転軸座標, double 拡大率, double 角度, bool 反転フラグ=false) const override
回転軸、角度、拡大率を指定して描画.
Definition: Anime.h:102