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
5class SunFlower :public BasePlant
6{
7
9
11
12 float transitionLevel = 0; //开始没有滤镜层级
13 int state = 0; //什么都没有干
14public:
15 SunFlower();
16
17 virtual void Update(float deltaTime);
18
19 void Produce();
20};
动画委托(无参单播委托)
定义 Animator.h:31
定义 BasePlant.h:7
float deltaTime
帧的时间间隔
定义 Sprite.h:21
定义 sunflower.h:6
Timer ProduceTimerHandle
定义 sunflower.h:10
void Produce()
定义 sunflower.cpp:41
float transitionLevel
定义 sunflower.h:12
int state
定义 sunflower.h:13
class Animation idle
定义 sunflower.h:8
virtual void Update(float deltaTime)
实现闪烁功能
定义 sunflower.cpp:17
SunFlower()
定义 sunflower.cpp:5
计时器类
定义 Timer.h:20