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; }
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)); }
public RMScoresTrigger(RMWorld world, double interval=0.5) { this.world = world; Interval = ScheduledTime = interval; }