public bool IsBabelClear(short _floor, short _subfloor, short floortype) { byte babelColumnNumFromFloor = NrTSingleton <BabelTowerManager> .Instance.GetBabelColumnNumFromFloor(_floor, _subfloor); BABEL_CLEARINFO babelClearInfo = this.GetBabelClearInfo(babelColumnNumFromFloor, floortype); return(NrTSingleton <BabelTowerManager> .Instance.IsClearBabel(_floor, _subfloor, babelClearInfo)); }
public bool IsClearBabel(short floor, short sub_floor, BABEL_CLEARINFO info) { if (info == null) { TsLog.LogError("@@@@@@@BABEL_CLEARINFO == NULL@@@@@@@@@@ Column={0}", new object[] { NrTSingleton <BabelTowerManager> .Instance.GetBabelColumnNumFromFloor(floor, sub_floor) }); return(false); } int num = (int)(((floor - 1) * 5 + sub_floor) % 63); long num2 = 1L; long num3 = num2 << num; return((num3 & info.ClearInfo) == num3); }
public bool IsClearBabel(short floor, BABEL_CLEARINFO info, short floortype) { BabelTowerManager.BabelTower_Floor babelTowerFloorInfo = this.GetBabelTowerFloorInfo(floor, floortype); return(babelTowerFloorInfo != null && babelTowerFloorInfo.m_Column == info.ColumnNum && (babelTowerFloorInfo.m_ClearInfo & info.ClearInfo) == babelTowerFloorInfo.m_ClearInfo && babelTowerFloorInfo.m_FloorType == (long)info.FloorType); }
public void AddBabelClearInfo(BABEL_CLEARINFO solInfo) { this.BabelClearList.Add(solInfo); }