增加explicit限定符
This commit is contained in:
parent
0cf6c6fb94
commit
9f1ab4485f
|
|
@ -6,7 +6,7 @@ namespace e2d
|
||||||
class TimerEntity
|
class TimerEntity
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TimerEntity(
|
explicit TimerEntity(
|
||||||
const e2d::Function& func,
|
const e2d::Function& func,
|
||||||
const e2d::String& name,
|
const e2d::String& name,
|
||||||
double delay,
|
double delay,
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ class FiniteTimeAction :
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// 创建特定时长的持续动作
|
// 创建特定时长的持续动作
|
||||||
FiniteTimeAction(
|
explicit FiniteTimeAction(
|
||||||
double duration
|
double duration
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -124,7 +124,7 @@ class MoveBy :
|
||||||
public FiniteTimeAction
|
public FiniteTimeAction
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MoveBy(
|
explicit MoveBy(
|
||||||
double duration, /* 持续时长 */
|
double duration, /* 持续时长 */
|
||||||
Vector vector /* 移动距离 */
|
Vector vector /* 移动距离 */
|
||||||
);
|
);
|
||||||
|
|
@ -153,7 +153,7 @@ class MoveTo :
|
||||||
public MoveBy
|
public MoveBy
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MoveTo(
|
explicit MoveTo(
|
||||||
double duration, /* 持续时长 */
|
double duration, /* 持续时长 */
|
||||||
Point pos /* 目的坐标 */
|
Point pos /* 目的坐标 */
|
||||||
);
|
);
|
||||||
|
|
@ -182,7 +182,7 @@ class JumpBy :
|
||||||
public FiniteTimeAction
|
public FiniteTimeAction
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
JumpBy(
|
explicit JumpBy(
|
||||||
double duration, /* 持续时长 */
|
double duration, /* 持续时长 */
|
||||||
const Vector& vec, /* 跳跃距离 */
|
const Vector& vec, /* 跳跃距离 */
|
||||||
double height, /* 跳跃高度 */
|
double height, /* 跳跃高度 */
|
||||||
|
|
@ -216,7 +216,7 @@ class JumpTo :
|
||||||
public JumpBy
|
public JumpBy
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
JumpTo(
|
explicit JumpTo(
|
||||||
double duration, /* 持续时长 */
|
double duration, /* 持续时长 */
|
||||||
const Point& pos, /* 目的坐标 */
|
const Point& pos, /* 目的坐标 */
|
||||||
double height, /* 跳跃高度 */
|
double height, /* 跳跃高度 */
|
||||||
|
|
@ -247,12 +247,12 @@ class ScaleBy :
|
||||||
public FiniteTimeAction
|
public FiniteTimeAction
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ScaleBy(
|
explicit ScaleBy(
|
||||||
double duration, /* 持续时长 */
|
double duration, /* 持续时长 */
|
||||||
double scale /* 相对变化值 */
|
double scale /* 相对变化值 */
|
||||||
);
|
);
|
||||||
|
|
||||||
ScaleBy(
|
explicit ScaleBy(
|
||||||
double duration, /* 持续时长 */
|
double duration, /* 持续时长 */
|
||||||
double scaleX, /* 横向缩放相对变化值 */
|
double scaleX, /* 横向缩放相对变化值 */
|
||||||
double scaleY /* 纵向缩放相对变化值 */
|
double scaleY /* 纵向缩放相对变化值 */
|
||||||
|
|
@ -284,12 +284,12 @@ class ScaleTo :
|
||||||
public ScaleBy
|
public ScaleBy
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ScaleTo(
|
explicit ScaleTo(
|
||||||
double duration, /* 持续时长 */
|
double duration, /* 持续时长 */
|
||||||
double scale /* 目标值 */
|
double scale /* 目标值 */
|
||||||
);
|
);
|
||||||
|
|
||||||
ScaleTo(
|
explicit ScaleTo(
|
||||||
double duration, /* 持续时长 */
|
double duration, /* 持续时长 */
|
||||||
double scaleX, /* 横向缩放目标值 */
|
double scaleX, /* 横向缩放目标值 */
|
||||||
double scaleY /* 纵向缩放目标值 */
|
double scaleY /* 纵向缩放目标值 */
|
||||||
|
|
@ -320,7 +320,7 @@ class OpacityBy :
|
||||||
public FiniteTimeAction
|
public FiniteTimeAction
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
OpacityBy(
|
explicit OpacityBy(
|
||||||
double duration, /* 持续时长 */
|
double duration, /* 持续时长 */
|
||||||
double opacity /* 相对变化值 */
|
double opacity /* 相对变化值 */
|
||||||
);
|
);
|
||||||
|
|
@ -349,7 +349,7 @@ class OpacityTo :
|
||||||
public OpacityBy
|
public OpacityBy
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
OpacityTo(
|
explicit OpacityTo(
|
||||||
double duration, /* 持续时长 */
|
double duration, /* 持续时长 */
|
||||||
double opacity /* 目标值 */
|
double opacity /* 目标值 */
|
||||||
);
|
);
|
||||||
|
|
@ -379,7 +379,7 @@ class FadeIn :
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// 创建淡入动作
|
// 创建淡入动作
|
||||||
FadeIn(
|
explicit FadeIn(
|
||||||
double duration /* 持续时长 */
|
double duration /* 持续时长 */
|
||||||
)
|
)
|
||||||
: OpacityTo(duration, 1)
|
: OpacityTo(duration, 1)
|
||||||
|
|
@ -394,7 +394,7 @@ class FadeOut :
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// 创建淡出动作
|
// 创建淡出动作
|
||||||
FadeOut(
|
explicit FadeOut(
|
||||||
double duration /* 持续时长 */
|
double duration /* 持续时长 */
|
||||||
)
|
)
|
||||||
: OpacityTo(duration, 0)
|
: OpacityTo(duration, 0)
|
||||||
|
|
@ -408,7 +408,7 @@ class RotateBy :
|
||||||
public FiniteTimeAction
|
public FiniteTimeAction
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RotateBy(
|
explicit RotateBy(
|
||||||
double duration, /* 持续时长 */
|
double duration, /* 持续时长 */
|
||||||
double rotation /* 相对变化值 */
|
double rotation /* 相对变化值 */
|
||||||
);
|
);
|
||||||
|
|
@ -437,7 +437,7 @@ class RotateTo :
|
||||||
public RotateBy
|
public RotateBy
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RotateTo(
|
explicit RotateTo(
|
||||||
double duration, /* 持续时长 */
|
double duration, /* 持续时长 */
|
||||||
double rotation /* 目标值 */
|
double rotation /* 目标值 */
|
||||||
);
|
);
|
||||||
|
|
@ -466,7 +466,7 @@ class Delay :
|
||||||
public Action
|
public Action
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Delay(
|
explicit Delay(
|
||||||
double duration /* 延迟时长(秒) */
|
double duration /* 延迟时长(秒) */
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -500,7 +500,7 @@ class Loop :
|
||||||
public Action
|
public Action
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Loop(
|
explicit Loop(
|
||||||
Action * action, /* 执行循环的动作 */
|
Action * action, /* 执行循环的动作 */
|
||||||
int times = -1 /* 循环次数 */
|
int times = -1 /* 循环次数 */
|
||||||
);
|
);
|
||||||
|
|
@ -541,7 +541,7 @@ class CallFunc :
|
||||||
public Action
|
public Action
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CallFunc(
|
explicit CallFunc(
|
||||||
const Function& func /* 函数对象 */
|
const Function& func /* 函数对象 */
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -570,7 +570,7 @@ class Sequence :
|
||||||
public:
|
public:
|
||||||
Sequence();
|
Sequence();
|
||||||
|
|
||||||
Sequence(
|
explicit Sequence(
|
||||||
const std::vector<Action*>& actions /* 动作列表 */
|
const std::vector<Action*>& actions /* 动作列表 */
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -621,7 +621,7 @@ class Spawn :
|
||||||
public:
|
public:
|
||||||
Spawn();
|
Spawn();
|
||||||
|
|
||||||
Spawn(
|
explicit Spawn(
|
||||||
const std::vector<Action*>& actions /* 动作列表 */
|
const std::vector<Action*>& actions /* 动作列表 */
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -671,15 +671,15 @@ class Animation :
|
||||||
public:
|
public:
|
||||||
Animation();
|
Animation();
|
||||||
|
|
||||||
Animation(
|
explicit Animation(
|
||||||
const std::vector<Image*>& frames /* 关键帧数组 */
|
const std::vector<Image*>& frames /* 关键帧数组 */
|
||||||
);
|
);
|
||||||
|
|
||||||
Animation(
|
explicit Animation(
|
||||||
double interval /* 帧间隔(秒) */
|
double interval /* 帧间隔(秒) */
|
||||||
);
|
);
|
||||||
|
|
||||||
Animation(
|
explicit Animation(
|
||||||
double interval, /* 帧间隔(秒) */
|
double interval, /* 帧间隔(秒) */
|
||||||
const std::vector<Image*>& frames /* 关键帧数组 */
|
const std::vector<Image*>& frames /* 关键帧数组 */
|
||||||
);
|
);
|
||||||
|
|
@ -729,7 +729,7 @@ class Animate :
|
||||||
public:
|
public:
|
||||||
Animate();
|
Animate();
|
||||||
|
|
||||||
Animate(
|
explicit Animate(
|
||||||
Animation * animation
|
Animation * animation
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -212,14 +212,14 @@ class RectCollider :
|
||||||
public:
|
public:
|
||||||
RectCollider();
|
RectCollider();
|
||||||
|
|
||||||
RectCollider(
|
explicit RectCollider(
|
||||||
double x,
|
double x,
|
||||||
double y,
|
double y,
|
||||||
double width,
|
double width,
|
||||||
double height
|
double height
|
||||||
);
|
);
|
||||||
|
|
||||||
RectCollider(
|
explicit RectCollider(
|
||||||
Node * node
|
Node * node
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -252,12 +252,12 @@ class CircleCollider :
|
||||||
public:
|
public:
|
||||||
CircleCollider();
|
CircleCollider();
|
||||||
|
|
||||||
CircleCollider(
|
explicit CircleCollider(
|
||||||
Point center,
|
Point center,
|
||||||
double radius
|
double radius
|
||||||
);
|
);
|
||||||
|
|
||||||
CircleCollider(
|
explicit CircleCollider(
|
||||||
Node * node
|
Node * node
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -288,13 +288,13 @@ class EllipseCollider :
|
||||||
public:
|
public:
|
||||||
EllipseCollider();
|
EllipseCollider();
|
||||||
|
|
||||||
EllipseCollider(
|
explicit EllipseCollider(
|
||||||
Point center,
|
Point center,
|
||||||
double radiusX,
|
double radiusX,
|
||||||
double radiusY
|
double radiusY
|
||||||
);
|
);
|
||||||
|
|
||||||
EllipseCollider(
|
explicit EllipseCollider(
|
||||||
Node * node
|
Node * node
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -430,7 +430,7 @@ public:
|
||||||
public:
|
public:
|
||||||
Font();
|
Font();
|
||||||
|
|
||||||
Font(
|
explicit Font(
|
||||||
const String& family,
|
const String& family,
|
||||||
double size = 22,
|
double size = 22,
|
||||||
UINT weight = Font::Weight::NORMAL,
|
UINT weight = Font::Weight::NORMAL,
|
||||||
|
|
@ -474,21 +474,21 @@ class Image :
|
||||||
public:
|
public:
|
||||||
Image();
|
Image();
|
||||||
|
|
||||||
Image(
|
explicit Image(
|
||||||
const String& filePath /* 图片文件路径 */
|
const String& filePath /* 图片文件路径 */
|
||||||
);
|
);
|
||||||
|
|
||||||
Image(
|
explicit Image(
|
||||||
int resNameId, /* 图片资源名称 */
|
int resNameId, /* 图片资源名称 */
|
||||||
const String& resType /* 图片资源类型 */
|
const String& resType /* 图片资源类型 */
|
||||||
);
|
);
|
||||||
|
|
||||||
Image(
|
explicit Image(
|
||||||
const String& filePath, /* 图片文件路径 */
|
const String& filePath, /* 图片文件路径 */
|
||||||
const Rect& cropRect /* 裁剪矩形 */
|
const Rect& cropRect /* 裁剪矩形 */
|
||||||
);
|
);
|
||||||
|
|
||||||
Image(
|
explicit Image(
|
||||||
int resNameId, /* 图片资源名称 */
|
int resNameId, /* 图片资源名称 */
|
||||||
const String& resType, /* 图片资源类型 */
|
const String& resType, /* 图片资源类型 */
|
||||||
const Rect& cropRect /* 裁剪矩形 */
|
const Rect& cropRect /* 裁剪矩形 */
|
||||||
|
|
|
||||||
|
|
@ -468,25 +468,25 @@ class Sprite :
|
||||||
public:
|
public:
|
||||||
Sprite();
|
Sprite();
|
||||||
|
|
||||||
Sprite(
|
explicit Sprite(
|
||||||
Image * image
|
Image * image
|
||||||
);
|
);
|
||||||
|
|
||||||
Sprite(
|
explicit Sprite(
|
||||||
const String& filePath /* 图片文件路径 */
|
const String& filePath /* 图片文件路径 */
|
||||||
);
|
);
|
||||||
|
|
||||||
Sprite(
|
explicit Sprite(
|
||||||
int resNameId, /* 图片资源名称 */
|
int resNameId, /* 图片资源名称 */
|
||||||
const String& resType /* 图片资源类型 */
|
const String& resType /* 图片资源类型 */
|
||||||
);
|
);
|
||||||
|
|
||||||
Sprite(
|
explicit Sprite(
|
||||||
const String& filePath, /* 图片文件路径 */
|
const String& filePath, /* 图片文件路径 */
|
||||||
const Rect& cropRect /* 裁剪矩形 */
|
const Rect& cropRect /* 裁剪矩形 */
|
||||||
);
|
);
|
||||||
|
|
||||||
Sprite(
|
explicit Sprite(
|
||||||
int resNameId, /* 图片资源名称 */
|
int resNameId, /* 图片资源名称 */
|
||||||
const String& resType, /* 图片资源类型 */
|
const String& resType, /* 图片资源类型 */
|
||||||
const Rect& cropRect /* 裁剪矩形 */
|
const Rect& cropRect /* 裁剪矩形 */
|
||||||
|
|
@ -579,7 +579,7 @@ public:
|
||||||
public:
|
public:
|
||||||
Text();
|
Text();
|
||||||
|
|
||||||
Text(
|
explicit Text(
|
||||||
const String& text, /* 文字内容 */
|
const String& text, /* 文字内容 */
|
||||||
const Font& font = Font(), /* 字体 */
|
const Font& font = Font(), /* 字体 */
|
||||||
const Style& style = Style() /* 文本样式 */
|
const Style& style = Style() /* 文本样式 */
|
||||||
|
|
@ -750,25 +750,25 @@ class Button :
|
||||||
public:
|
public:
|
||||||
Button();
|
Button();
|
||||||
|
|
||||||
Button(
|
explicit Button(
|
||||||
Node * normal, /* 普通状态 */
|
Node * normal, /* 普通状态 */
|
||||||
const Function& func = nullptr /* 按钮点击后的执行函数 */
|
const Function& func = nullptr /* 按钮点击后的执行函数 */
|
||||||
);
|
);
|
||||||
|
|
||||||
Button(
|
explicit Button(
|
||||||
Node * normal, /* 普通状态 */
|
Node * normal, /* 普通状态 */
|
||||||
Node * selected, /* 鼠标按下状态 */
|
Node * selected, /* 鼠标按下状态 */
|
||||||
const Function& func = nullptr /* 按钮点击后的执行函数 */
|
const Function& func = nullptr /* 按钮点击后的执行函数 */
|
||||||
);
|
);
|
||||||
|
|
||||||
Button(
|
explicit Button(
|
||||||
Node * normal, /* 普通状态 */
|
Node * normal, /* 普通状态 */
|
||||||
Node * mouseover, /* 鼠标移入状态 */
|
Node * mouseover, /* 鼠标移入状态 */
|
||||||
Node * selected, /* 鼠标按下状态 */
|
Node * selected, /* 鼠标按下状态 */
|
||||||
const Function& func = nullptr /* 按钮点击后的执行函数 */
|
const Function& func = nullptr /* 按钮点击后的执行函数 */
|
||||||
);
|
);
|
||||||
|
|
||||||
Button(
|
explicit Button(
|
||||||
Node * normal, /* 普通状态 */
|
Node * normal, /* 普通状态 */
|
||||||
Node * mouseover, /* 鼠标移入状态 */
|
Node * mouseover, /* 鼠标移入状态 */
|
||||||
Node * selected, /* 鼠标移入状态 */
|
Node * selected, /* 鼠标移入状态 */
|
||||||
|
|
@ -843,13 +843,13 @@ class ToggleButton :
|
||||||
public:
|
public:
|
||||||
ToggleButton();
|
ToggleButton();
|
||||||
|
|
||||||
ToggleButton(
|
explicit ToggleButton(
|
||||||
Node * onNormal, /* 按钮打开时,普通状态 */
|
Node * onNormal, /* 按钮打开时,普通状态 */
|
||||||
Node * offNormal, /* 按钮关闭时,普通状态 */
|
Node * offNormal, /* 按钮关闭时,普通状态 */
|
||||||
const Function& func = nullptr /* 按钮点击后的执行函数 */
|
const Function& func = nullptr /* 按钮点击后的执行函数 */
|
||||||
);
|
);
|
||||||
|
|
||||||
ToggleButton(
|
explicit ToggleButton(
|
||||||
Node * onNormal, /* 按钮打开时,普通状态 */
|
Node * onNormal, /* 按钮打开时,普通状态 */
|
||||||
Node * offNormal, /* 按钮关闭时,普通状态 */
|
Node * offNormal, /* 按钮关闭时,普通状态 */
|
||||||
Node * onSelected, /* 按钮打开时,鼠标按下状态 */
|
Node * onSelected, /* 按钮打开时,鼠标按下状态 */
|
||||||
|
|
@ -857,7 +857,7 @@ public:
|
||||||
const Function& func = nullptr /* 按钮点击后的执行函数 */
|
const Function& func = nullptr /* 按钮点击后的执行函数 */
|
||||||
);
|
);
|
||||||
|
|
||||||
ToggleButton(
|
explicit ToggleButton(
|
||||||
Node * onNormal, /* 按钮打开时,普通状态 */
|
Node * onNormal, /* 按钮打开时,普通状态 */
|
||||||
Node * offNormal, /* 按钮关闭时,普通状态 */
|
Node * offNormal, /* 按钮关闭时,普通状态 */
|
||||||
Node * onMouseOver, /* 按钮打开时,鼠标移入状态 */
|
Node * onMouseOver, /* 按钮打开时,鼠标移入状态 */
|
||||||
|
|
@ -867,7 +867,7 @@ public:
|
||||||
const Function& func = nullptr /* 按钮点击后的执行函数 */
|
const Function& func = nullptr /* 按钮点击后的执行函数 */
|
||||||
);
|
);
|
||||||
|
|
||||||
ToggleButton(
|
explicit ToggleButton(
|
||||||
Node * onNormal, /* 按钮打开时,普通状态 */
|
Node * onNormal, /* 按钮打开时,普通状态 */
|
||||||
Node * offNormal, /* 按钮关闭时,普通状态 */
|
Node * offNormal, /* 按钮关闭时,普通状态 */
|
||||||
Node * onMouseOver, /* 按钮打开时,鼠标移入状态 */
|
Node * onMouseOver, /* 按钮打开时,鼠标移入状态 */
|
||||||
|
|
@ -949,7 +949,7 @@ class Menu :
|
||||||
public:
|
public:
|
||||||
Menu();
|
Menu();
|
||||||
|
|
||||||
Menu(
|
explicit Menu(
|
||||||
const std::vector<Button*>& buttons /* 按钮数组 */
|
const std::vector<Button*>& buttons /* 按钮数组 */
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -78,11 +78,11 @@ class RectShape :
|
||||||
public:
|
public:
|
||||||
RectShape();
|
RectShape();
|
||||||
|
|
||||||
RectShape(
|
explicit RectShape(
|
||||||
Size size /* 宽度和高度 */
|
Size size /* 宽度和高度 */
|
||||||
);
|
);
|
||||||
|
|
||||||
RectShape(
|
explicit RectShape(
|
||||||
Point topLeft, /* 左上角坐标 */
|
Point topLeft, /* 左上角坐标 */
|
||||||
Size size /* 宽度和高度 */
|
Size size /* 宽度和高度 */
|
||||||
);
|
);
|
||||||
|
|
@ -105,13 +105,13 @@ class RoundRectShape :
|
||||||
public:
|
public:
|
||||||
RoundRectShape();
|
RoundRectShape();
|
||||||
|
|
||||||
RoundRectShape(
|
explicit RoundRectShape(
|
||||||
Size size, /* 宽度和高度 */
|
Size size, /* 宽度和高度 */
|
||||||
double radiusX, /* 圆角半径 */
|
double radiusX, /* 圆角半径 */
|
||||||
double radiusY /* 圆角半径 */
|
double radiusY /* 圆角半径 */
|
||||||
);
|
);
|
||||||
|
|
||||||
RoundRectShape(
|
explicit RoundRectShape(
|
||||||
Point topLeft, /* 左上角坐标 */
|
Point topLeft, /* 左上角坐标 */
|
||||||
Size size, /* 宽度和高度 */
|
Size size, /* 宽度和高度 */
|
||||||
double radiusX, /* 圆角半径 */
|
double radiusX, /* 圆角半径 */
|
||||||
|
|
@ -156,11 +156,11 @@ class CircleShape :
|
||||||
public:
|
public:
|
||||||
CircleShape();
|
CircleShape();
|
||||||
|
|
||||||
CircleShape(
|
explicit CircleShape(
|
||||||
double radius /* 半径 */
|
double radius /* 半径 */
|
||||||
);
|
);
|
||||||
|
|
||||||
CircleShape(
|
explicit CircleShape(
|
||||||
Point center, /* 圆心坐标 */
|
Point center, /* 圆心坐标 */
|
||||||
double radius /* 半径 */
|
double radius /* 半径 */
|
||||||
);
|
);
|
||||||
|
|
@ -194,12 +194,12 @@ class EllipseShape :
|
||||||
public:
|
public:
|
||||||
EllipseShape();
|
EllipseShape();
|
||||||
|
|
||||||
EllipseShape(
|
explicit EllipseShape(
|
||||||
double radiusX, /* 横轴半径 */
|
double radiusX, /* 横轴半径 */
|
||||||
double radiusY /* 纵轴半径 */
|
double radiusY /* 纵轴半径 */
|
||||||
);
|
);
|
||||||
|
|
||||||
EllipseShape(
|
explicit EllipseShape(
|
||||||
Point center, /* 圆心坐标 */
|
Point center, /* 圆心坐标 */
|
||||||
double radiusX, /* 横轴半径 */
|
double radiusX, /* 横轴半径 */
|
||||||
double radiusY /* 纵轴半径 */
|
double radiusY /* 纵轴半径 */
|
||||||
|
|
|
||||||
|
|
@ -57,11 +57,11 @@ class Music :
|
||||||
public:
|
public:
|
||||||
Music();
|
Music();
|
||||||
|
|
||||||
Music(
|
explicit Music(
|
||||||
const e2d::String& filePath /* 稜있匡숭쨌쓺 */
|
const e2d::String& filePath /* 稜있匡숭쨌쓺 */
|
||||||
);
|
);
|
||||||
|
|
||||||
Music(
|
explicit Music(
|
||||||
int resNameId, /* 稜있栗都츰냔 */
|
int resNameId, /* 稜있栗都츰냔 */
|
||||||
const String& resType /* 稜있栗都잚謹 */
|
const String& resType /* 稜있栗都잚謹 */
|
||||||
);
|
);
|
||||||
|
|
@ -330,7 +330,7 @@ class Listener
|
||||||
public:
|
public:
|
||||||
Listener();
|
Listener();
|
||||||
|
|
||||||
Listener(
|
explicit Listener(
|
||||||
const Function& func,
|
const Function& func,
|
||||||
const String& name,
|
const String& name,
|
||||||
bool paused
|
bool paused
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ class Transition :
|
||||||
friend class SceneManager;
|
friend class SceneManager;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Transition(double duration);
|
explicit Transition(double duration);
|
||||||
|
|
||||||
virtual ~Transition();
|
virtual ~Transition();
|
||||||
|
|
||||||
|
|
@ -67,7 +67,7 @@ class FadeTransition :
|
||||||
public Transition
|
public Transition
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FadeTransition(
|
explicit FadeTransition(
|
||||||
double duration /* 动画持续时长 */
|
double duration /* 动画持续时长 */
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -89,7 +89,7 @@ class EmergeTransition :
|
||||||
public Transition
|
public Transition
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
EmergeTransition(
|
explicit EmergeTransition(
|
||||||
double duration /* 浮现动画持续时长 */
|
double duration /* 浮现动画持续时长 */
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -111,7 +111,7 @@ class BoxTransition :
|
||||||
public Transition
|
public Transition
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BoxTransition(
|
explicit BoxTransition(
|
||||||
double duration /* 动画持续时长 */
|
double duration /* 动画持续时长 */
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -133,7 +133,7 @@ class MoveTransition :
|
||||||
public Transition
|
public Transition
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MoveTransition(
|
explicit MoveTransition(
|
||||||
double moveDuration, /* 场景移动动画持续时长 */
|
double moveDuration, /* 场景移动动画持续时长 */
|
||||||
Direction direction = Direction::LEFT /* 场景移动方向 */
|
Direction direction = Direction::LEFT /* 场景移动方向 */
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue