Author Topic: "use" and "shp"  (Read 834 times)

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
"use" and "shp"
« on: September 01, 2012, 05:00:43 PM »
I was going trough the DNA tokonizer trying to see if I can make it selectively case insensitive and stumbled on some weird code:

Code: [Select]
     
    If (Left(a, 1) <> "'" And Left(a, 1) <> "/") And a <> "" Then
        If Left(a, 3) = "shp" Or Left(a, 3) = "def" Or Left(a, 3) = "use" Then
          If Left(a, 3) = "shp" Then  'inserts robot shape
            rob(n).Shape = val(Right(a, 1))
          End If
          If Left(a, 3) = "def" Then  'inserts user defined labels as sysvars
            insertvar n, a
          End If
          If Left(a, 3) = "use" Then
            interpretUSE n, a
          End If
        Else

I am interested to know how "use" and "shp" is supposed to work?

I also found:

Quote
If Left(a, 2) = "'#" Or Left(a, 2) = "/#" Then
        ' embryo of a new feature, should allow recording
        ' in dna files info such robot colour, generation,
        ' mutations etc
        getvals n, a, hold
      End If

I like this concept, but I would like to re-engineer it a little later on.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7713
    • View Profile
Re: "use" and "shp"
« Reply #1 on: September 01, 2012, 09:43:44 PM »
It might have to do with something Eric was working on when he added shapes, but I don't remember anything about it to be honest.