跳跃动作的次数的默认参数值为1

This commit is contained in:
Nomango 2018-06-01 18:32:22 +08:00
parent bc23efb5c8
commit 372bc09773
1 changed files with 2 additions and 2 deletions

View File

@ -187,7 +187,7 @@ public:
double duration, /* 持续时长 */
const Vector& vec, /* 跳跃距离 */
double height, /* 跳跃高度 */
int jumps /* 跳跃次数 */
int jumps = 1 /* 跳跃次数 */
);
// 获取该动作的拷贝对象
@ -221,7 +221,7 @@ public:
double duration, /* 持续时长 */
const Point& pos, /* 目的坐标 */
double height, /* 跳跃高度 */
int jumps /* 跳跃次数 */
int jumps = 1 /* 跳跃次数 */
);
// 获取该动作的拷贝对象