To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.spyboticsOpen lugnet.robotics.spybotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Spybotics / 364
363  |  365
Subject: 
Re: Spybotics playing tag - project
Newsgroups: 
lugnet.robotics.spybotics
Date: 
Thu, 17 Jun 2004 13:59:18 GMT
Viewed: 
6953 times
  
In lugnet.robotics.spybotics, Steve Hassenplug wrote:
Yes, the world table contains all the here-there-anywhere zone information.
And, it's very cool (and easy) to use.  As I said before, I'm not sure how much
of the functionality is included in NQC, but if you look into Mindscript, or
LASM, you should be able to use that information.

Pretty much all of the Spybot functionality available via MindScript has been
made available to NQC users as of NQC 3.0a2 (or with earlier versions by using
the spy.nqh that was posted to Lugnet in various forms).  There are still some
bugs in the Spybot support in NQC but the world table support seems to work okay
from the few reports I have seen (and from my own testing).  The documentation
for NQC included in the latest BricxCC version (3.3.7.7) has been updated to
reflect the new Spybot support.

Here's a horrible program that simply shows some of the API functions:

task main()
{
  int x = 40;
  int t = -1;
  ClearWorld();
  FindWorld(t, SPY_RANGE, REL_GT, RANGE_NOWHERE);
  while (t != -1)
  {
    SetWorldNote(t, 40);
    SetTargetID(t);
    GetWorld(SPY_SHORTID, t, x);
    GetWorld(SPY_LINKID, t, x);
    GetWorld(SPY_RANGE, t, x);
    GetWorld(SPY_DIRECTION, t, x);
    GetWorld(SPY_ASPECT, t, x);
    GetWorld(SPY_INFO, t, x);
    GetWorld(SPY_NOTE, t, x);
    FindWorld(t, SPY_RANGE, REL_GT, RANGE_NOWHERE);
  }

}

I'm pretty sure a search of this newsgroup will result in better examples of how
to use the NQC Spybot world table support.

John Hansen
http://bricxcc.sourceforge.net/



Message has 1 Reply:
  Re: Spybotics playing tag - project
 
(...) had a wrong CR/LF after copying ) and looked at the source and test of "Brian B. Alano" - very cool ! So everything I need ( HERE-THERE-ANYWHERE ) could be done in NQC. My Spybot is now able to follow a beacon or bot in the HERE-Zone. But (...) (20 years ago, 17-Jun-04, to lugnet.robotics.spybotics)

Message is in Reply To:
  Re: Spybotics playing tag - project
 
(...) Sorry I didn't explain myself very well the first time I replied to your message: (URL) the world table contains all the here-there-anywhere zone information. And, it's very cool (and easy) to use. As I said before, I'm not sure how much of (...) (20 years ago, 16-Jun-04, to lugnet.robotics.spybotics)

7 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR