Author Topic: SCI programming  (Read 2157 times)

0 Members and 1 Guest are viewing this topic.

Trig

  • Guest
SCI programming
« on: June 14, 2002, 10:25:53 AM »
Brian,

I was glancing at the documentation for your class system and was curious as to how you did one thing.

How can you reference the first few selectors in the Obj class?  Obviously, every class and instance has a species, superClass, -info-, and name selector, but how do you access them?

I realize that you will be releasing all of your code soon, but I didn't see this documented anywhere.  Of course, I havn't exactly performed an exhaustive search.  Any information would be appreciated.



Trig

  • Guest
Re:SCI programming
« Reply #1 on: June 14, 2002, 11:11:03 AM »
I forgot to add one other boggle.

Do you need to specify inherited properties for classes?

For instance:

(class Foo
  (properties
     bar 0
     )
  )

(class FooToo of Foo
  (properties
     bar 0
     bell 0
     )
  )

In the declaration for the FooToo properties, is it necessary to specify 'bar' as a property since it is inherited from Foo?

Offline Brian Provinciano

Re:SCI programming
« Reply #2 on: June 14, 2002, 05:02:12 PM »
There are the following keywords:
objectFunctionArea
objectInfo
objectLocal
objectName
objectSize
objectSpecies
objectSuperclass
objectTotalProperties
objectType

For classes, you need to specify all the properties. However, they are automatically added in instances. When making a game with the template, you shouldn't use any classes, only instance--unless you are extending the class system.


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.015 seconds with 16 queries.