Пример #1
0
 public RobotLocator(InternalMap map, RMWorld world)
 {
     this.world = world;
     this.map = map;
     currentDirection = map.RobotId == TwoPlayersId.Left ? Direction.Right : Direction.Left;
     realRobotAngle = currentDirection.ToAngle();
     expectedRobotAngle = realRobotAngle;
 }
Пример #2
0
        public RMCombinedUnit(IRMRobot actor, RMWorld world)
            : base(actor)
        {
            LeftClapperOffset = new Frame3D(0, 12, 6);
            RightClapperOffset = new Frame3D(0, -12, 6);

            this.world = world;
            this.robot = actor;

            SubUnits.Add("LeftDeployer", x => MakeClapper(x, LeftClapperOffset));
            SubUnits.Add("RightDeployer", x => MakeClapper(x, RightClapperOffset));
            SubUnits.Add("LadderTaker", x => GoStair(x));
            SubUnits.Add("PopcornMachineUser", x => TakePopCorn(x));
        }
Пример #3
0
 public RMScoresTrigger(RMWorld world, double interval=0.5)
 {
     this.world = world;
     Interval = ScheduledTime = interval;
 }