예제 #1
0
        protected override bool MovementCore()
        {
            Actionneur.Lifter.DoSequenceDropOff();
            _randomDropOff.SetLoadTop(Actionneur.Lifter.Load);
            Actionneur.Lifter.Load = null;
            GameBoard.AddObstacle(new Segment(new RealPoint(_randomDropOff.Position.X - 200, 525), new RealPoint(_randomDropOff.Position.X + 200, 525)));

            return(true);
        }
예제 #2
0
        protected override bool MovementCore()
        {
            Actionneur.Lifter.DoSequenceDropOff();
            _randomDropOff.SetLoadBottom(Actionneur.Lifter.Load);
            Actionneur.Lifter.Load = null;
            GameBoard.AddObstacle(new Segment(new RealPoint(_randomDropOff.Position.X - 200, 525 + 600 - 30), new RealPoint(_randomDropOff.Position.X + 200, 525 + 600 - 30)));

            if (_randomDropOff.Owner == GameBoard.ColorLeftBlue)
            {
                GameBoard.Elements.FindBuoy(new RealPoint(300, 1200)).IsAvailable = false;
                GameBoard.Elements.FindBuoy(new RealPoint(450, 1100)).IsAvailable = false;
            }
            else
            {
                GameBoard.Elements.FindBuoy(new RealPoint(3000 - 300, 1200)).IsAvailable = false;
                GameBoard.Elements.FindBuoy(new RealPoint(3000 - 450, 1100)).IsAvailable = false;
            }

            return(true);
        }