载入中...
搜索中...
未找到

单张卡牌:ECS 实体,数据拆成 Identity / Stats / Visual / Layout / State。 更多...

#include <CardTypes.h>

类 eve::card::CardData 继承关系图:

类

struct  Attributes
 Canonical selected card stats backed by the attributes module. 更多...
 
struct  DefinitionBinding
 Definition link and reload policy for this card instance. 更多...
 
struct  Effects
 Canonical effect lifecycle and card combat target state. 更多...
 
struct  Identity
 稳定实例 id、显示名、种类。 更多...
 
struct  Layout
 运行时布局(由 Hand 维护):中心坐标与变换。 更多...
 
struct  State
 运行时交互状态。 更多...
 
struct  Stats
 费用 / 攻击 / 生命。 更多...
 
struct  Visual
 朝向、禁用、色调、卡图。 更多...
 

Public 成员函数

void release () override
 Entity.
 
bool hit (float px, float py)
 以当前中心 + 缩放判断点是否命中。
 
std::string describe ()
 卡牌描述字符串(调试用)。
 

静态 Public 成员函数

static CardData * createCard ()
 创建并触摸全部组件。
 

详细描述

单张卡牌:ECS 实体,数据拆成 Identity / Stats / Visual / Layout / State。

在文件 CardTypes.h 第 94 行定义.

成员函数说明

◆ createCard()

CardData * eve::card::CardData::createCard ( )
static

创建并触摸全部组件。

在文件 CardTypes.cpp 第 102 行定义.

引用了 c.

被这些函数引用 eve::card::Card::newCard().

◆ describe()

std::string eve::card::CardData::describe ( )

卡牌描述字符串(调试用)。

在文件 CardTypes.cpp 第 124 行定义.

引用了 eve::card::CardAttributeAdapter::project(), projected , 以及 stats.

◆ hit()

bool eve::card::CardData::hit ( float  px,
float  py 
)

以当前中心 + 缩放判断点是否命中。

在文件 CardTypes.cpp 第 115 行定义.

引用了 layout, px , 以及 py.

◆ release()

void eve::card::CardData::release ( )
inlineoverride

Entity.

Release.

在文件 CardTypes.h 第 100 行定义.


该类的文档由以下文件生成: