Elements Token name and constant name?

Discussion around programming R'n'D, its source code and its tools.

Moderators: Zomis, Flumminator

Post Reply
Zomis
Posts: 1501
Joined: Mon Jun 21, 2004 1:27 pm
Location: Sweden
Contact:

Elements Token name and constant name?

Post by Zomis » Fri Jan 19, 2007 9:16 pm

Is the name of the constant (#define) always "EL_" + the element's token name?

I see that it is this for most elements, but is it like this for them ALL?

User avatar
Holger
Site Admin
Posts: 3223
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger » Sat Jan 20, 2007 4:56 pm

Yes, it is.

There are some subtle exceptions, though: Elements like "dynamite.active" ("EL_DYNAMITE_ACTIVE"), which are a combination of an element name ("dynamite") and an element action ("active"), but which also exist as a true element that can exist in a level file.

Post Reply