示例#1
0
        protected override double ActualGetCurrentHeading(BoonBotBase targetBot)
        {
            var qry = new Message_Query(MainMessageKind.QueryBotStatus, KnownSubkinds.ReadHeading);

            qry.PublicBotId = targetBot.PublicId;
            hub.Launch <Message_Query>(qry);
            return(qry.DParameter);
        }
示例#2
0
        protected override int ActualGetCurrentSpeed(BoonBotBase targetBot)
        {
            var qry = new Message_Query(MainMessageKind.QueryBotStatus, KnownSubkinds.ReadSpeed);

            qry.PublicBotId = targetBot.PublicId;
            hub.Launch <Message_Query>(qry);
            NavigationInfoContext nic = (NavigationInfoContext)qry.ResponseContext;

            b.Assert.True(nic != null, "The response cant have a null value");
            return(nic.SpeedDelta);
        }