wavelength 1.0.0
Loading...
Searching...
No Matches
duelpattern.h
Go to the documentation of this file.
1#pragma once
2
3#include "script/dataarray.h"
4
6constexpr int kDuelPatternLanes = 3;
7
9constexpr int kDuelPatternSteps = 32;
10
18public:
26 explicit DuelPattern(const DataArray *pLanes);
27
35 bool IsAllowed(int nStep, int nLane) const {
36 return mAllowed[nStep][nLane] != 0;
37 }
38
39private:
41};
Reference-counted array of script data nodes.
Definition dataarray.h:20
DuelPattern(const DataArray *pLanes)
Read a grid from three symbols, one per lane, where x at a step allows a gem.
bool IsAllowed(int nStep, int nLane) const
Report whether a step allows a gem in a lane.
Definition duelpattern.h:35
constexpr int kDuelPatternLanes
Gem lanes of a pattern.
Definition duelpattern.h:6
constexpr int kDuelPatternSteps
Steps of a pattern, one bar.
Definition duelpattern.h:9