easyx_framework V1.0.0
基于easyx的c++游戏框架
 
载入中...
搜索中...
未找到
standstatus类 参考

#include <zomblestatus.h>

类 standstatus 继承关系图:
FSMItems

Public 成员函数

 standstatus (int _status, FSMItems *_parent=nullptr, int _level=0)
 
- Public 成员函数 继承自 FSMItems
 FSMItems (int _status, FSMItems *_parent=nullptr, int _level=0)
 构造函数.
 
 ~FSMItems ()
 析构函数.
 
void AttachTo (FSMItems *par)
 设置父节点.
 
void DetachForm (FSMItems *par)
 解除绑定.
 
void Destory ()
 删除节点状态.
 
int newchildstatus ()
 获取还没有的子节点状态值.
 
int GetStatus () const
 获取状态值.
 

额外继承的成员函数

- Public 属性 继承自 FSMItems
FSMfsm = nullptr
 绑定的状态机
 
Animatorani = nullptr
 同物体的动画组件
 
Collidercol = nullptr
 同物体的碰撞组件
 
action act
 执行事件(每帧执行) 一般用户重写新节点就是添加事件
 
action enter
 进入事件 一般用户重写新节点就是添加事件
 
action exit
 退出事件 一般用户重写新节点就是添加事件
 
- Protected 属性 继承自 FSMItems
int level
 根深度
 
int status
 状态值
 
std::set< FSMItems *, StatusSortchildren
 孩子状态容器
 
FSMItemsparent =nullptr
 父节点状态
 

构造及析构函数说明

◆ standstatus()

standstatus::standstatus ( int _status,
FSMItems * _parent = nullptr,
int _level = 0 )
inline