Code center > Darwinbots Program Source Code

"use" and "shp"

(1/1)

Botsareus:
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: ---     
    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

--- End code ---

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
--- End quote ---

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

Numsgil:
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.

Navigation

[0] Message Index

Go to full version