载入中...
搜索中...
未找到
eve::card::Zone类 参考
落牌区(手牌区 / 出牌区 / 弃牌区),用于拖放命中判定。 更多...
#include <CardTypes.h>
类 eve::card::Zone 继承关系图:
类 | |
| struct | Filter |
| 接受的卡牌 kind;空 = 接受任意 kind。 更多... | |
| struct | Rect |
| 区域矩形与绘制参数。 更多... | |
Public 成员函数 | |
| void | release () override |
| bool | contains (float px, float py) |
| 点是否落在区域内。 | |
| bool | accepts (CardData *card) |
| 该区域是否接受这张卡。 | |
| void | render (graphics::Graphics *gfx, bool showLabel) |
| 绘制落牌区。 | |
静态 Public 成员函数 | |
| static Zone * | createZone () |
| 创建并触摸组件。 | |
详细描述
落牌区(手牌区 / 出牌区 / 弃牌区),用于拖放命中判定。
在文件 CardTypes.h 第 175 行定义.
成员函数说明
◆ accepts()
| bool eve::card::Zone::accepts | ( | CardData * | card | ) |
◆ contains()
| bool eve::card::Zone::contains | ( | float | px, |
| float | py | ||
| ) |
◆ createZone()
|
static |
◆ release()
|
inlineoverride |
在文件 CardTypes.h 第 179 行定义.
◆ render()
| void eve::card::Zone::render | ( | graphics::Graphics * | gfx, |
| bool | showLabel | ||
| ) |
绘制落牌区。
在文件 CardTypes.cpp 第 188 行定义.
引用了 eve::graphics::Graphics::drawSolidRect(), eve::graphics::Graphics::getFont() , 以及 eve::card::printCentered().
该类的文档由以下文件生成:
- src/modules/card/CardTypes.h
- src/modules/card/CardTypes.cpp