easyx_framework
V1.0.0
基于easyx的c++游戏框架
载入中...
搜索中...
未找到
F:/vc/project/esayx_framewoek/esayx_framewoek/sunflower.h
浏览该文件的文档.
1
#pragma once
2
#pragma once
3
#include"
BasePlant.h
"
4
5
class
SunFlower
:
public
BasePlant
6
{
7
8
class
Animation
idle
;
9
10
Timer
ProduceTimerHandle
;
11
12
float
transitionLevel
= 0;
//开始没有滤镜层级
13
int
state
= 0;
//什么都没有干
14
public
:
15
SunFlower
();
16
17
virtual
void
Update
(
float
deltaTime
);
18
19
void
Produce
();
20
};
BasePlant.h
Animation
动画委托(无参单播委托)
定义
Animator.h:31
BasePlant
定义
BasePlant.h:7
Sprite::deltaTime
float deltaTime
帧的时间间隔
定义
Sprite.h:21
SunFlower
定义
sunflower.h:6
SunFlower::ProduceTimerHandle
Timer ProduceTimerHandle
定义
sunflower.h:10
SunFlower::Produce
void Produce()
定义
sunflower.cpp:41
SunFlower::transitionLevel
float transitionLevel
定义
sunflower.h:12
SunFlower::state
int state
定义
sunflower.h:13
SunFlower::idle
class Animation idle
定义
sunflower.h:8
SunFlower::Update
virtual void Update(float deltaTime)
实现闪烁功能
定义
sunflower.cpp:17
SunFlower::SunFlower
SunFlower()
定义
sunflower.cpp:5
Timer
计时器类
定义
Timer.h:20
sunflower.h
制作者
1.12.0