カードを作成するクラス
More...
#include <PlayingCard.hpp>
|
| Pack ()=default |
| デフォルトコンストラクタ More...
|
|
| Pack (const Font &font, const Font &fontLarge, const Font &fontEmoji, double cardWidth=50, const ColorF &backSideColor=Palette::Blue, double frameThickness=1.0) |
| カードを扱うための構造体を作成します。 More...
|
|
| Pack (double cardWidth, const ColorF &backSideColor=Palette::Blue, double frameThickness=1.0) |
| カードを扱うための構造体を作成します。 More...
|
|
CardInfo | operator() (Suit suit, int32 rank=1, bool isFaceSide=Card::Front) const |
| カードの描画用の情報を作成します。 More...
|
|
CardInfo | operator() (const Card &card) const |
| カードの描画用の情報を作成します。 More...
|
|
Vec2 | size () const noexcept |
| カードの大きさ(ピクセル)を返します。 More...
|
|
double | width () const noexcept |
| カードの幅(ピクセル)を返します。 More...
|
|
double | height () const noexcept |
| カードの高さ(ピクセル)を返します。 More...
|
|
RectF | region (const Vec2 &pos) const |
| カードの領域を返します。 More...
|
|
Quad | region (const Vec2 &pos, double angle) const |
| カードの領域を返します。 More...
|
|
RectF | regionAt (const Vec2 ¢er) const |
| カードの領域を返します。 More...
|
|
Quad | regionAt (const Vec2 ¢er, double angle) const |
| カードの領域を返します。 More...
|
|
◆ Pack() [1/3]
s3d::PlayingCard::Pack::Pack |
( |
| ) |
|
|
default |
◆ Pack() [2/3]
s3d::PlayingCard::Pack::Pack |
( |
const Font & |
font, |
|
|
const Font & |
fontLarge, |
|
|
const Font & |
fontEmoji, |
|
|
double |
cardWidth = 50 , |
|
|
const ColorF & |
backSideColor = Palette::Blue , |
|
|
double |
frameThickness = 1.0 |
|
) |
| |
|
explicit |
カードを扱うための構造体を作成します。
- Parameters
-
font | 小さいフォント |
fontLarge | 大きいフォント |
fontEmoji | 絵文字フォント |
cardWidth | カードの幅(ピクセル) |
backSideColor | カード背面の色 |
frameThickness | カードの枠の太さ |
◆ Pack() [3/3]
s3d::PlayingCard::Pack::Pack |
( |
double |
cardWidth, |
|
|
const ColorF & |
backSideColor = Palette::Blue , |
|
|
double |
frameThickness = 1.0 |
|
) |
| |
|
explicit |
カードを扱うための構造体を作成します。
- Parameters
-
cardWidth | カードの幅(ピクセル) |
backSideColor | カード背面の色 |
frameThickness | カードの枠の太さ |
◆ height()
double s3d::PlayingCard::Pack::height |
( |
| ) |
const |
|
noexcept |
カードの高さ(ピクセル)を返します。
- Returns
- カードの高さ(ピクセル)
◆ operator()() [1/2]
CardInfo s3d::PlayingCard::Pack::operator() |
( |
const Card & |
card | ) |
const |
カードの描画用の情報を作成します。
- Parameters
-
- Returns
- カードの描画用の情報
◆ operator()() [2/2]
カードの描画用の情報を作成します。
- Parameters
-
suit | カードのスート |
rank | カードの数字 |
isFaceSide | カードが表面かどうか |
- Returns
- カードの描画用の情報
◆ region() [1/2]
RectF s3d::PlayingCard::Pack::region |
( |
const Vec2 & |
pos | ) |
const |
カードの領域を返します。
- Parameters
-
- Returns
- カードの領域
◆ region() [2/2]
Quad s3d::PlayingCard::Pack::region |
( |
const Vec2 & |
pos, |
|
|
double |
angle |
|
) |
| const |
カードの領域を返します。
- Parameters
-
pos | カードの左上の座標 |
angle | カードの時計回りの回転 |
- Returns
- カードの領域
◆ regionAt() [1/2]
RectF s3d::PlayingCard::Pack::regionAt |
( |
const Vec2 & |
center | ) |
const |
カードの領域を返します。
- Parameters
-
- Returns
- カードの領域
◆ regionAt() [2/2]
Quad s3d::PlayingCard::Pack::regionAt |
( |
const Vec2 & |
center, |
|
|
double |
angle |
|
) |
| const |
カードの領域を返します。
- Parameters
-
center | カードの中心の座標 |
angle | カードの時計回りの回転 |
- Returns
- カードの領域
◆ size()
Vec2 s3d::PlayingCard::Pack::size |
( |
| ) |
const |
|
noexcept |
カードの大きさ(ピクセル)を返します。
- Returns
- カードの大きさ(ピクセル)
◆ width()
double s3d::PlayingCard::Pack::width |
( |
| ) |
const |
|
noexcept |
カードの幅(ピクセル)を返します。
- Returns
- カードの幅(ピクセル)
The documentation for this class was generated from the following file: