Esempio n. 1
0
        //操作
        public bool Move(BlockUnit.Directions direction)
        {
            bool result;

            lock (field)
            {
                result = field.Move(direction);
            }
            if (RecordPlayDataEnabled && result)
            {
                _playData.Events.Add(new GamePlayData.GamePlayEvent()
                {
                    Round = this.State.Round, Time = _gameWatch.Elapsed, Event = GamePlayData.GamePlayEvent.EventType.MOVE, Arg = new GamePlayData.GamePlayEvent.Argument()
                    {
                        Object = direction
                    }
                });
            }
            return(result);
        }
Esempio n. 2
0
 //コントロール
 public bool Move(BlockUnit.Directions direction)
 {
     return(_game.Move(direction));
 }