Esempio n. 1
0
 public void ResetFieldMoveInfo()
 {
     this.fieldMoveInfo   = null;
     this.IsFieldMoveCell = false;
     this.IsProhibited    = false;
     this.IsEvent         = false;
     this.eventIds        = new List <int>();
 }
Esempio n. 2
0
        public void MoveFieldBlackOut(Cell touchCell)
        {
            FieldMoveInfo fieldMoveInfo = touchCell.fieldMoveInfo;

            FieldInfo.FieldPosition towardPosition = currentFieldInfo.NeighborFieldIdToPosition[fieldMoveInfo.MoveFieldId];
            this.hero.MoveToFieldBlackOut(this.fieldManager.cellManager.GetCellByCellNum(fieldMoveInfo.AfterMoveCell), towardPosition);

            Field moveField = this.fieldIdToField[fieldMoveInfo.MoveFieldId];

            moveField.InitializeFieldObjects();
            this.currentField = moveField;
            this.currentField.SetPosition(FieldInfo.FieldPosition.Center);
            this.ChangeCurrentField();
        }
Esempio n. 3
0
        public IObservable <bool> MoveFieldHorizontally(Cell touchCell)
        {
            FieldMoveInfo fieldMoveInfo = touchCell.fieldMoveInfo;

            FieldInfo.FieldPosition towardPosition = currentFieldInfo.NeighborFieldIdToPosition[fieldMoveInfo.MoveFieldId];
            this.hero.MoveToFieldHorizontally(this.fieldManager.cellManager.GetCellByCellNum(fieldMoveInfo.AfterMoveCell), towardPosition);

            Field moveField = this.fieldIdToField[fieldMoveInfo.MoveFieldId];

            moveField.InitializeFieldObjects();
            currentField.MoveToTarget(this.upsideFieldPosition[currentFieldInfo.NeighborFieldIdToPosition[fieldMoveInfo.MoveFieldId]]);
            this.currentField = moveField;
            return(moveField.MoveToTarget(FieldInfo.FieldPosition.Center));
        }
Esempio n. 4
0
 public void SetFieldMoveInfo(FieldMoveInfo fieldMoveInfo)
 {
     this.fieldMoveInfo   = fieldMoveInfo;
     this.IsFieldMoveCell = fieldMoveInfo.canMove;
 }
Esempio n. 5
0
 public void MoveField(FieldMoveInfo fieldMoveInfo)
 {
 }