123456789101112131415161718192021222324252627282930313233343536 |
- //
- // FillResult.hpp
- // auto_fill_jewel_v3
- //
- // Created by Red on 2024/11/26.
- // 定义填充结果信息
- #ifndef FillResult_hpp
- #define FillResult_hpp
- #include <stdio.h>
- #include <vector>
- using std::vector;
- //一个宝石的填充信息
- struct FillResult {
- float _x,_y ;// 宝石位置相对盘子左下角(原点)的坐标,盘子内部坐标,注意盘子有效填充区域和盘子精灵尺寸的区别。
- // 这里盘子的坐标原点指的是盘子精灵图片尺寸的左下角坐标。
- float _rotdeg ;//旋转角度,单位角度
- int _jewelTypeId ;//宝石类型ID
- float _width; //宝石外接宽度
- float _height;//宝石外接高度
- } ;
- //一个盘子的填充信息,包括它下面的层和宝石
- struct PlateFillResult {
- PlateFillResult():_plateTypeId(-1),_moveId(0){}
-
- vector< vector<FillResult> > _layersFillResults ;//层与层的宝石填充信息
- int _plateTypeId ;//盘子类型ID
- int _moveId ;//0-不可移动。 1-第一移动行。 2-第二移动行.
- } ;
- #endif /* FillResult_hpp */
|